aboutsummaryrefslogtreecommitdiff
path: root/nixos-switch.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-09-06 08:34:36 -0300
committerEuAndreh <eu@euandre.org>2020-09-06 08:43:08 -0300
commit4419a3d0758bdd6ee2cda07a4c68da28beb64eaf (patch)
treee1f2ffd43d49c19add2ad292b5f99999c3e9d61d /nixos-switch.sh
parentAdd mediator documentation (diff)
downloadserver-4419a3d0758bdd6ee2cda07a4c68da28beb64eaf.tar.gz
server-4419a3d0758bdd6ee2cda07a4c68da28beb64eaf.tar.xz
Use dynamic toggle for prosody
Diffstat (limited to 'nixos-switch.sh')
-rwxr-xr-xnixos-switch.sh3
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/; \