Closed JackTheFragger closed 1 year ago
@JackTheFragger thank you for the PR! I added a comment to the code above.
shellcheck is complaining about accessing
VPCFG_Server_disableServerPassword
without defining it.You could reduce the code to something like:
SERVER_PASS=${SERVER_PASS-secret} if [ "${VPCFG_Server_disableServerPassword:-}" = true ]; then SERVER_PASS="" fi
Where do I define it?
In defaults
. At the same point where you made the current changes.
Fix for Issue #568
Setting SERVER_PASS to empty value if variable 'VPCFG_Server_disableServerPassword' is true