Add first Nextcloud Support
This commit is contained in:
parent
59656c3f83
commit
ab99c2d0fe
1 changed files with 23 additions and 0 deletions
23
abackup.sh
23
abackup.sh
|
@ -353,6 +353,27 @@ fi
|
|||
|
||||
}
|
||||
|
||||
#
|
||||
## Stop services
|
||||
#
|
||||
|
||||
stopservices() {
|
||||
if [[ "$nextcloud" = "1" ]]; then
|
||||
echo "Set Nextcloud to Mainenancemode"
|
||||
sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:mode --on
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
## Start services
|
||||
#
|
||||
|
||||
startservices() {
|
||||
if [[ "$nextcloud" = "1" ]]; then
|
||||
echo "Disable Nextcloud Maintenancemode"
|
||||
sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:mode --off
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
## Take databasedump
|
||||
|
@ -428,9 +449,11 @@ case "$1" in
|
|||
;;
|
||||
|
||||
--backup-with-postgre)
|
||||
stopservices
|
||||
readconfig
|
||||
postgrebackup
|
||||
backup
|
||||
startservices
|
||||
exit 0
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue