nextcloudpi/updates/1.53.1.sh
Tobias Knöppler 2d0af3bc4e
updates/1.53.1.sh: Fix possible race condition
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2024-02-01 00:14:27 +01:00

13 lines
473 B
Bash

#!/usr/bin/env bash
set -e
source /usr/local/etc/library.sh
install_template apache2/ncp.conf.sh /etc/apache2/sites-available/ncp.conf --defaults
a2dissite nextcloud
mv /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-available/001-nextcloud.conf
a2ensite 001-nextcloud
install_template systemd/notify_push.service.sh /etc/systemd/system/notify_push.service
systemctl daemon-reload
systemctl restart notify_push
bash -c "sleep 2 && systemctl reload apache2"