mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-17 17:57:23 +01:00
Merge 6adc494e49 into 3efd4257b5
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#
|
||||
# This script will restore the backup made during an installation
|
||||
source /etc/mailinabox.conf # load global vars
|
||||
source ./setup/functions.sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: owncloud-restore.sh <backup directory>"
|
||||
@@ -26,7 +27,7 @@ if [ ! -f "$1/config.php" ]; then
|
||||
fi
|
||||
|
||||
echo "Restoring backup from $1"
|
||||
service php8.0-fpm stop
|
||||
service "php$PHP_VER-fpm" stop
|
||||
|
||||
# remove the current ownCloud/Nextcloud installation
|
||||
rm -rf /usr/local/lib/owncloud/
|
||||
@@ -45,5 +46,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"
|
||||
|
||||
@@ -7,8 +7,9 @@
|
||||
# purpopses only. After this point you are on your own.
|
||||
|
||||
source /etc/mailinabox.conf # load global vars
|
||||
source ./setup/functions.sh
|
||||
|
||||
ADMIN=$(./mail.py user admins | head -n 1)
|
||||
ADMIN=$(./management/cli.py user admins | head -n 1)
|
||||
test -z "$1" || ADMIN=$1
|
||||
|
||||
echo "I am going to unlock admin features for $ADMIN."
|
||||
|
||||
Reference in New Issue
Block a user