From 4419a3d0758bdd6ee2cda07a4c68da28beb64eaf Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 6 Sep 2020 08:34:36 -0300 Subject: Use dynamic toggle for prosody --- nixos-switch.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nixos-switch.sh') 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/; \ -- cgit v1.2.3