mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
owncloud: fix last commit
This commit is contained in:
parent
c0606bf1f9
commit
c6bb369b11
@ -6,14 +6,14 @@ if [ -f /owncloud/config/config.php ] && [ ! -f /config/config.php ]; then
|
|||||||
elif [ -f /config/config.php ]; then
|
elif [ -f /config/config.php ]; then
|
||||||
if [ -f /owncloud/config/config.php ]; then
|
if [ -f /owncloud/config/config.php ]; then
|
||||||
sed -i "s/.*version.*/`grep "version" \/owncloud\/config\/config.php`/" /config/config.php
|
sed -i "s/.*version.*/`grep "version" \/owncloud\/config\/config.php`/" /config/config.php
|
||||||
fi
|
|
||||||
CONFIG=`md5sum /config/config.php | awk '{ print $1 }'`
|
CONFIG=`md5sum /config/config.php | awk '{ print $1 }'`
|
||||||
CONFIGINS=`md5sum /owncloud/config/config.php | awk '{ print $1 }'`
|
CONFIGINS=`md5sum /owncloud/config/config.php | awk '{ print $1 }'`
|
||||||
if [ $CONFIG != $CONFIGINS ]; then
|
if [ $CONFIG != $CONFIGINS ]; then
|
||||||
mv /owncloud/config/config.php /config/config.php.bkp
|
mv /owncloud/config/config.php /config/config.php.bkp
|
||||||
cp /config/config.php /owncloud/config/config.php
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
cp /config/config.php /owncloud/config/config.php
|
||||||
|
fi
|
||||||
|
|
||||||
touch /var/run/php-fpm.sock
|
touch /var/run/php-fpm.sock
|
||||||
chown -R owncloud:owncloud /owncloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R owncloud:owncloud /owncloud /data /config /apps2 /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user