nextcloudpi/updates/1.53.1.sh
Tobias K 46b3654f1d
1.53.1.sh: Make sure, notify_push service is updated
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2024-01-31 21:41:00 +01:00

12 lines
476 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
bash -c "sleep 2 && systemctl reload apache2 && systemctl restart notify_push"