no dots allowed in rename.sh

This commit is contained in:
Bike Dude
2020-03-06 23:34:18 +01:00
parent a3c40b2727
commit af06250c1d

View File

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