-
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.53.1.sh: Make sure, notify_push service is updated
Signed-off-by: Tobias Knöppler <[email protected]>
- Loading branch information
1 parent
bd9d73c
commit 548676f
Showing
3 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
set -ex | ||
|
||
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 | ||
bash -c "sleep 2 && service apache2 reload" &>/dev/null & | ||
install_template systemd/notify_push.service.sh /etc/systemd/system/notify_push.service | ||
systemctl daemon-reload | ||
url="$(ncc config:system:get overwrite.cli.url)" | ||
bash -c "sleep 2 && systemctl reload apache2 && systemctl restart notify_push && sleep 5 && ncc notify_push:setup '${url}/push'" |