diff options
author | EuAndreh <eu@euandre.org> | 2020-09-06 08:34:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-09-06 08:43:08 -0300 |
commit | 4419a3d0758bdd6ee2cda07a4c68da28beb64eaf (patch) | |
tree | e1f2ffd43d49c19add2ad292b5f99999c3e9d61d /nixos-switch.sh | |
parent | Add mediator documentation (diff) | |
download | server-4419a3d0758bdd6ee2cda07a4c68da28beb64eaf.tar.gz server-4419a3d0758bdd6ee2cda07a4c68da28beb64eaf.tar.xz |
Use dynamic toggle for prosody
Diffstat (limited to 'nixos-switch.sh')
-rwxr-xr-x | nixos-switch.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos-switch.sh b/nixos-switch.sh index b74b8b5..2c1d10c 100755 --- a/nixos-switch.sh +++ b/nixos-switch.sh @@ -17,8 +17,7 @@ scp bash-profile.sh "${TLD}:.bash_profile" echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S systemctl restart pires-prod.service -# shellcheck disable=2050 -if [[ true = false ]]; then +if [[ "$PROSODY_ENABLE" = true ]]; then echo Ugly hack to change TLS certificates permissions echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S "\ sudo chown -R nginx:prosody /var/lib/acme/; \ |