From 665d5fc06dd6e4cb6d091cd0248e987269eebc25 Mon Sep 17 00:00:00 2001 From: yodax Date: Sun, 31 Jul 2016 14:58:53 +0200 Subject: [PATCH] Stop php5-fpm before owncloud upgrade to prevent database locks --- setup/owncloud.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/owncloud.sh b/setup/owncloud.sh index e693c44b..cfa36535 100755 --- a/setup/owncloud.sh +++ b/setup/owncloud.sh @@ -88,6 +88,9 @@ owncloud_ver=9.1.0 if [ ! -d /usr/local/lib/owncloud/ ] \ || ! grep -q $owncloud_ver /usr/local/lib/owncloud/version.php; then + # Stop php-fpm + hide_output service php5-fpm stop + # Backup the existing ownCloud. if [ -d /usr/local/lib/owncloud/ ]; then echo "upgrading ownCloud to $owncloud_ver (backing up existing ownCloud directory to /tmp/owncloud-backup-$$ and owncloud db to /tmp/owncloud.db)..."