1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-17 17:57:23 +01:00

add logic to migrate from php8.0 to php8.1

This commit is contained in:
KiekerJan
2023-09-29 14:50:02 +02:00
parent e419b62034
commit 8884f41414
12 changed files with 77 additions and 19 deletions

View File

@@ -26,7 +26,10 @@ if [ ! -f $1/config.php ]; then
fi
echo "Restoring backup from $1"
service php8.0-fpm stop
PHP_VER=$(php_version)
service php$PHP_VER-fpm stop
# remove the current ownCloud/Nextcloud installation
rm -rf /usr/local/lib/owncloud/
@@ -45,5 +48,5 @@ chown www-data:www-data $STORAGE_ROOT/owncloud/config.php
sudo -u www-data php$PHP_VER /usr/local/lib/owncloud/occ maintenance:mode --off
service php8.0-fpm start
service php$PHP_VER-fpm start
echo "Done"

View File

@@ -19,5 +19,5 @@ echo If in doubt, press CTRL-C to cancel.
echo
echo Press enter to continue.
read
PHP_VER=$(php_version)
sudo -u www-data php$PHP_VER /usr/local/lib/owncloud/occ group:adduser admin $ADMIN && echo Done.