refactor(templates): wrap shell variables in double quotes to handle spaces and special characters safely

This commit is contained in:
emrah
2026-02-12 18:00:04 +03:00
committed by Saúl Ibarra Corretgé
parent 0e4bf5ed1a
commit 156e36e97f
8 changed files with 20 additions and 20 deletions

View File

@@ -17,9 +17,9 @@ function stop_service() {
exit 0
}
if [[ $DISABLE_HTTPS -ne 1 ]] && [[ $ENABLE_LETSENCRYPT -eq 1 ]] && [[ $ENABLE_JAAS_COMPONENTS -eq 1 ]] && [[ -n $EMAIL ]] && [[ -n $DOMAIN ]]; then
if [[ "$DISABLE_HTTPS" -ne 1 ]] && [[ "$ENABLE_LETSENCRYPT" -eq 1 ]] && [[ "$ENABLE_JAAS_COMPONENTS" -eq 1 ]] && [[ -n "$EMAIL" ]] && [[ -n "$DOMAIN" ]]; then
if [ -f $JAAS_ACCOUNT_FILE ]; then
if [ -f "$JAAS_ACCOUNT_FILE" ]; then
echo "JaaS account already exists"
stop_service
fi