From 964feb5cb59f589bdaf837c3eba84ed4331d3e68 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sat, 30 Apr 2016 11:42:56 +0200 Subject: [PATCH] owncloud: fix latest commit --- owncloud/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/owncloud/run.sh b/owncloud/run.sh index 3f5c4cc..a3ef9d6 100644 --- a/owncloud/run.sh +++ b/owncloud/run.sh @@ -7,7 +7,9 @@ crontab -u www-data /etc/cron.conf if [ -f /owncloud/config/config.php ] && [ ! -f /config/config.php ]; then cp /owncloud/config/config.php /config/config.php elif [ -f /config/config.php ]; then - sed -i "s/.*version.*/`grep "version" \/owncloud\/config\/config.php`/" /config/config.php + 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 fi