refactor(templates): replace "! -z" with "-n" for better readability
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
659e2e88f4
commit
0e4bf5ed1a
@@ -21,7 +21,7 @@ if [[ $DISABLE_HTTPS -ne 1 ]]; then
|
||||
fi
|
||||
|
||||
ACME_SERVER=""
|
||||
if [[ ! -z $LETSENCRYPT_ACME_SERVER ]]; then
|
||||
if [[ -n $LETSENCRYPT_ACME_SERVER ]]; then
|
||||
ACME_SERVER="--set-default-ca --server $LETSENCRYPT_ACME_SERVER"
|
||||
echo "Using custom ACME server: $LETSENCRYPT_ACME_SERVER"
|
||||
fi
|
||||
|
||||
@@ -17,7 +17,7 @@ function stop_service() {
|
||||
exit 0
|
||||
}
|
||||
|
||||
if [[ $DISABLE_HTTPS -ne 1 ]] && [[ $ENABLE_LETSENCRYPT -eq 1 ]] && [[ $ENABLE_JAAS_COMPONENTS -eq 1 ]] && [[ ! -z $EMAIL ]] && [[ ! -z $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
|
||||
echo "JaaS account already exists"
|
||||
@@ -119,4 +119,4 @@ done)
|
||||
rm ${CHALLENGE_FILE} || true
|
||||
|
||||
fi
|
||||
stop_service
|
||||
stop_service
|
||||
|
||||
Reference in New Issue
Block a user