Merge pull request #174 from hackacad/rename_fix

no dots allowed in rename.sh
This commit is contained in:
Christer Edwards
2020-03-10 10:48:58 -06:00
committed by GitHub

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"