diff options
author | nachoparker <nacho@ownyourbits.com> | 2021-10-13 02:01:05 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2021-10-14 19:24:16 +0300 |
commit | 9bddfad8057c713c2698e768c855348498438dda (patch) | |
tree | f6be2535dd866e3cbf19d7bd69ce6059a98a394b /updates | |
parent | 4e790e4e9e61f1e5488d329dcca9b2dfdd7881e3 (diff) |
fix HPB with dynamic IPv1.40.8
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'updates')
-rw-r--r-- | updates/1.41.0.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/updates/1.41.0.sh b/updates/1.41.0.sh index 4a8f5375..8fd474de 100644 --- a/updates/1.41.0.sh +++ b/updates/1.41.0.sh @@ -20,6 +20,26 @@ run_app nc-notify-updates # for non docker images [[ ! -f /.docker-image ]] && { + # fix HPB with dynamic public IP + arch="$(uname -m)" + [[ "${arch}" =~ "armv7" ]] && arch="armv7" + cat > /etc/systemd/system/notify_push.service <<EOF +[Unit] +Description = Push daemon for Nextcloud clients +After = mysql.service + +[Service] +Environment = PORT=7867 +Environment = NEXTCLOUD_URL=https://localhost +ExecStart = /var/www/nextcloud/apps/notify_push/bin/"${arch}"/notify_push --allow-self-signed /var/www/nextcloud/config/config.php +User=www-data + +[Install] +WantedBy = multi-user.target +EOF + systemctl daemon-reload + systemctl restart notify_push + # make sure redis is up before running nextclud-domain cat > /usr/lib/systemd/system/nextcloud-domain.service <<'EOF' [Unit] |