diff --git a/owncloud/run.sh b/owncloud/run.sh index 6698c52..6bfda22 100644 --- a/owncloud/run.sh +++ b/owncloud/run.sh @@ -7,8 +7,12 @@ 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 fi - mv /owncloud/config/config.php /config/config.php.bkp - cp /config/config.php /owncloud/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 + cp /config/config.php /owncloud/config/config.php + fi fi touch /var/run/php-fpm.sock