mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
owncloud: fix version directive after upgrade
This commit is contained in:
parent
500508bebf
commit
98ba78a9f0
@ -7,6 +7,7 @@ crontab -u www-data /etc/cron.conf
|
|||||||
if [ -f /owncloud/config/config.php ] && [ ! -f /config/config.php ]; then
|
if [ -f /owncloud/config/config.php ] && [ ! -f /config/config.php ]; then
|
||||||
cp /owncloud/config/config.php /config/config.php
|
cp /owncloud/config/config.php /config/config.php
|
||||||
elif [ -f /config/config.php ]; then
|
elif [ -f /config/config.php ]; then
|
||||||
|
sed -i "s/.*version.*/`grep "version" \/owncloud\/config\/config.php`/" /config/config.php
|
||||||
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
|
cp /config/config.php /owncloud/config/config.php
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user