diff --git a/usr/local/share/bastille/rename.sh b/usr/local/share/bastille/rename.sh index 29fb5c52..7e9a89b7 100644 --- a/usr/local/share/bastille/rename.sh +++ b/usr/local/share/bastille/rename.sh @@ -57,6 +57,11 @@ TARGET="${1}" NEWNAME="${2}" shift +if echo "${NEWNAME}" | grep -q "[.]"; then + echo -e "${COLOR_RED}Container names may not contain a dot(.)!${COLOR_RESET}" + exit 1 +fi + update_jailconf() { # Update jail.conf JAIL_CONFIG="${bastille_jailsdir}/${NEWNAME}/jail.conf"