additional checks

This commit is contained in:
dodger 2022-01-28 14:28:34 +01:00
parent 6f8c29ffb8
commit 201a292f81

View File

@ -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