diff options
Diffstat (limited to 'updates/1.41.0.sh')
-rw-r--r-- | updates/1.41.0.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/updates/1.41.0.sh b/updates/1.41.0.sh new file mode 100644 index 00000000..4a8f5375 --- /dev/null +++ b/updates/1.41.0.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +set -e + +## BACKWARD FIXES ( for older images ) + +source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE + +# all images + +# we handle this ourselves now +ncc app:disable updatenotification +run_app nc-notify-updates + +# docker images only +[[ -f /.docker-image ]] && { + : +} + +# for non docker images +[[ ! -f /.docker-image ]] && { + + # make sure redis is up before running nextclud-domain + cat > /usr/lib/systemd/system/nextcloud-domain.service <<'EOF' +[Unit] +Description=Register Current IP as Nextcloud trusted domain +Requires=network.target +After=mysql.service redis.service + +[Service] +ExecStart=/bin/bash /usr/local/bin/nextcloud-domain.sh +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=multi-user.target +EOF +} + +exit 0 |