Check/assign variables before printing debug2
parent
bfaacd6d5b
commit
db49858f21
|
@ -35,11 +35,6 @@ plex_deploy() {
|
||||||
_getdeployconf PLEX_PKCS12_file
|
_getdeployconf PLEX_PKCS12_file
|
||||||
_getdeployconf PLEX_sudo_required
|
_getdeployconf PLEX_sudo_required
|
||||||
|
|
||||||
|
|
||||||
_debug2 PLEX_PKCS12_password "$PLEX_PKCS12_password"
|
|
||||||
_debug2 PLEX_PKCS12_file "$PLEX_PKCS12_file"
|
|
||||||
_debug2 PLEX_sudo_required "$PLEX_sudo_required"
|
|
||||||
|
|
||||||
|
|
||||||
#_DEPLOY_PLEX_WIKI="https://github.com/acmesh-official/acme.sh/wiki/deploy-to-plex"
|
#_DEPLOY_PLEX_WIKI="https://github.com/acmesh-official/acme.sh/wiki/deploy-to-plex"
|
||||||
|
|
||||||
|
@ -49,10 +44,20 @@ plex_deploy() {
|
||||||
#_err "See: $_DEPLOY_PLEX_WIKI"
|
#_err "See: $_DEPLOY_PLEX_WIKI"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
_debug2 PLEX_PKCS12_password "$PLEX_PKCS12_password"
|
||||||
|
|
||||||
if [ -z "$PLEX_PKCS12_file" ]; then
|
if [ -z "$PLEX_PKCS12_file" ]; then
|
||||||
PLEX_PKCS12_file="$DOMAIN_PATH/$_cdomain.pfx"
|
PLEX_PKCS12_file="$DOMAIN_PATH/$_cdomain.pfx"
|
||||||
|
_debug2 "Setting PLEX_PKCS12_file to default"
|
||||||
fi
|
fi
|
||||||
|
_debug2 PLEX_PKCS12_file "$PLEX_PKCS12_file"
|
||||||
|
|
||||||
|
if [ -z "$PLEX_sudo_required" ]; then
|
||||||
|
PLEX_sudo_required=0
|
||||||
|
_debug2 "Setting PLEX_PKCS12_file to default (0/False)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
_debug2 PLEX_sudo_required "$PLEX_sudo_required"
|
||||||
|
|
||||||
_reload_cmd=""
|
_reload_cmd=""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue