mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-05 20:24:09 +01:00
Match exact jail name for start/stop commands, don't allow for dots during create
This commit is contained in:
@@ -292,6 +292,12 @@ case "${TYPE}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
## don't allow for dots(.) in container names
|
||||
if [ $(echo "${NAME}" | grep "[.]") ]; then
|
||||
echo -e "${COLOR_RED}Container names may not contain a dot(.)!${COLOR_RESET}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
## verify release
|
||||
case "${RELEASE}" in
|
||||
*-RELEASE|*-release|*-RC1|*-rc1|*-RC2|*-rc2)
|
||||
|
||||
Reference in New Issue
Block a user