From c6bb369b11b7fa8a0fbb2fa8f5a93e29fa62c6bb Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sun, 1 May 2016 20:16:56 +0200 Subject: [PATCH] owncloud: fix last commit --- owncloud/run.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/owncloud/run.sh b/owncloud/run.sh index 6bfda22..eb0ab44 100644 --- a/owncloud/run.sh +++ b/owncloud/run.sh @@ -6,13 +6,13 @@ if [ -f /owncloud/config/config.php ] && [ ! -f /config/config.php ]; then elif [ -f /config/config.php ]; then if [ -f /owncloud/config/config.php ]; then sed -i "s/.*version.*/`grep "version" \/owncloud\/config\/config.php`/" /config/config.php + CONFIG=`md5sum /config/config.php | awk '{ print $1 }'` + CONFIGINS=`md5sum /owncloud/config/config.php | awk '{ print $1 }'` + if [ $CONFIG != $CONFIGINS ]; then + mv /owncloud/config/config.php /config/config.php.bkp + fi fi - CONFIG=`md5sum /config/config.php | awk '{ print $1 }'` - CONFIGINS=`md5sum /owncloud/config/config.php | awk '{ print $1 }'` - if [ $CONFIG != $CONFIGINS ]; then - mv /owncloud/config/config.php /config/config.php.bkp - cp /config/config.php /owncloud/config/config.php - fi + cp /config/config.php /owncloud/config/config.php fi touch /var/run/php-fpm.sock