mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
Add upgrade path from 8.1.1. Only do an upgrade check if owncloud was previously installed.
This commit is contained in:
parent
abe6bc743f
commit
3f65c7133f
@ -95,9 +95,16 @@ if [ ! -d /usr/local/lib/owncloud/ ] \
|
|||||||
cp /home/user-data/owncloud/owncloud.db /tmp
|
cp /home/user-data/owncloud/owncloud.db /tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# We only need to check if we do upgrades when owncloud was previously installed
|
||||||
|
if [ -e /usr/local/lib/owncloud/version.php ]; then
|
||||||
|
if grep -q "8.1.[0-9]" /usr/local/lib/owncloud/version.php; then
|
||||||
|
echo "We are running 8.1.x, upgrading to 8.2.3 first"
|
||||||
|
InstallOwncloud 8.2.3 bfdf6166fbf6fc5438dc358600e7239d1c970613
|
||||||
|
fi
|
||||||
|
|
||||||
# If we are upgrading from 8.2.x we should go to 9.0 first. Owncloud doesn't support skipping minor versions
|
# If we are upgrading from 8.2.x we should go to 9.0 first. Owncloud doesn't support skipping minor versions
|
||||||
if grep -q "8.2.[0-9]" /usr/local/lib/owncloud/version.php; then
|
if grep -q "8.2.[0-9]" /usr/local/lib/owncloud/version.php; then
|
||||||
echo "We are running version 8.2.3, upgrading to 9.0.2 first"
|
echo "We are running version 8.2.x, upgrading to 9.0.2 first"
|
||||||
|
|
||||||
# We need to disable memcached and go with APC, the upgrade and install fails
|
# We need to disable memcached and go with APC, the upgrade and install fails
|
||||||
# with memcached
|
# with memcached
|
||||||
@ -129,6 +136,7 @@ EOF
|
|||||||
done
|
done
|
||||||
sudo -u www-data php /usr/local/lib/owncloud/occ dav:sync-birthday-calendar
|
sudo -u www-data php /usr/local/lib/owncloud/occ dav:sync-birthday-calendar
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
InstallOwncloud $owncloud_ver 82aa7f038e2670b16e80aaf9a41260ab718a8348
|
InstallOwncloud $owncloud_ver 82aa7f038e2670b16e80aaf9a41260ab718a8348
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user