aboutsummaryrefslogtreecommitdiff
path: root/nixos-switch.sh
diff options
context:
space:
mode:
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/; \