additional checks
This commit is contained in:
parent
6f8c29ffb8
commit
201a292f81
@ -218,6 +218,20 @@ if [[ ! "${THEUSERNAME}" =~ ^[a-zA-Z].{1,}$ ]] ; then
|
||||
abort_message "The USERNAME must begin with a letter an have at least 3 characters"
|
||||
fi
|
||||
|
||||
if [[ ! "${THEADMINUSER}" =~ ^[a-zA-Z].{1,}$ ]] ; then
|
||||
abort_message "The ADMINUSER must begin with a letter an have at least 3 characters"
|
||||
fi
|
||||
|
||||
if [[ ! "${THEHOSTNAME}" ]] ; then
|
||||
abort_message "HOSTNAME ${LIGHTRED}must${RESET} be defined"
|
||||
fi
|
||||
if [[ ! "${THEPORT}" ]] ; then
|
||||
abort_message "PORT ${LIGHTRED}must${RESET} be defined"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
DROPUSERBIN=$(which dropuser)
|
||||
|
||||
if [[ ! "${DROPUSERBIN}" ]] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user