package-pipeline-nextcloud/nextcloud-27/debian.postinst
s3lph f02435f2fa
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: initial commit, split off nextcloud packages from s3lph/package-pipeline
2023-11-11 07:05:59 +01:00

15 lines
431 B
Bash
Executable file

#!/bin/bash
set -e
if [[ "$1" == "configure" ]]; then
deb-systemd-helper enable nextcloud-cron.timer
# Only run occ upgrade if nextcloud has been configured
if [[ -z "$(grep installed /var/lib/nextcloud/webroot/config/config.php | grep false)" ]]; then
sudo -u www-data php /var/lib/nextcloud/webroot/occ upgrade
sudo -u www-data php /var/lib/nextcloud/webroot/occ maintenance:mode --off
fi
fi