diff options
author | EuAndreh <eu@euandre.org> | 2020-08-24 08:19:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-24 08:20:45 -0300 |
commit | aef17d2da885d30952f6e9be779343fcbc15fd36 (patch) | |
tree | fb58e6012cdf1f24215c421afaa95b9ea142e0f7 /nixos-switch.sh | |
parent | Remove matterbridge overlay (diff) | |
download | server-aef17d2da885d30952f6e9be779343fcbc15fd36.tar.gz server-aef17d2da885d30952f6e9be779343fcbc15fd36.tar.xz |
Disable prosody
Diffstat (limited to 'nixos-switch.sh')
-rwxr-xr-x | nixos-switch.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos-switch.sh b/nixos-switch.sh index cd05c5b..01e8817 100755 --- a/nixos-switch.sh +++ b/nixos-switch.sh @@ -9,6 +9,8 @@ echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S nix-channel --add "https://nixos.or echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S -i nixos-rebuild switch --upgrade rsync -avzP favicons/ "${TLD}:${DATA_ROOT}/favicons/" +# shellcheck disable=2050 +if [[ true = false ]]; then echo Ugly hack to change TLS certificates permissions echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S "\ sudo chown -R nginx:prosody /var/lib/acme/; \ @@ -26,3 +28,4 @@ sudo chown nginx:prosody /var/lib/acme/${PROSODY_CONVERSE_TLD}/fullchain.pem; \ sudo chown nginx:prosody /var/lib/acme/${PROSODY_CONVERSE_TLD}/key.pem; \ sudo chown nginx:prosody /var/lib/acme/${PROSODY_CONVERSE_TLD}/; \ sudo systemctl restart prosody.service" +fi |