mirror of
https://github.com/BastilleBSD/bastille.git
synced 2025-12-11 01:19:52 +01:00
typos
This commit is contained in:
@@ -109,7 +109,7 @@ clone_validate_jail_name() {
|
||||
if [ "$(echo -n "e0a_${NEWNAME}" | awk '{print length}')" -ge 16 ]; then
|
||||
name_prefix="$(echo ${NEWNAME} | cut -c1-7)"
|
||||
name_suffix="$(echo ${NEWNAME} | rev | cut -c1-2 | rev)"
|
||||
if find "${bastille_jailsdir}"/*/jail.conf -maxdepth 1 -type f -print0 2> /dev/null | xargs -r0 -P0 grep -h -oqs "e0b_"${name_prefix}"xx"${name_suffix}" 2>/dev/null; then
|
||||
if find "${bastille_jailsdir}"/*/jail.conf -maxdepth 1 -type f -print0 2> /dev/null | xargs -r0 -P0 grep -h -oqs "e0b_${name_prefix}xx${name_suffix}" 2>/dev/null; then
|
||||
error_exit "[ERROR]: Invalid jail name due to epair naming limitations. See documentation for details."
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -79,7 +79,7 @@ validate_name() {
|
||||
elif { [ "${VNET_JAIL_BRIDGE}" -eq 1 ] || [ "${VNET_JAIL_STANDARD}" -eq 1 ]; } && [ "$(echo -n "e0a_${NAME_VERIFY}" | awk '{print length}')" -ge 16 ]; then
|
||||
name_prefix="$(echo ${NAME_VERIFY} | cut -c1-7)"
|
||||
name_suffix="$(echo ${NAME_VERIFY} | rev | cut -c1-2 | rev)"
|
||||
if find "${bastille_jailsdir}"/*/jail.conf -maxdepth 1 -type f -print0 2> /dev/null | xargs -r0 -P0 grep -h -oqs "e0b_"${name_prefix}"xx"${name_suffix}" 2>/dev/null; then
|
||||
if find "${bastille_jailsdir}"/*/jail.conf -maxdepth 1 -type f -print0 2> /dev/null | xargs -r0 -P0 grep -h -oqs "e0b_${name_prefix}xx${name_suffix}" 2>/dev/null; then
|
||||
error_exit "[ERROR]: Invalid jail name, due to epair naming limitations. See documentation for details."
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -103,7 +103,7 @@ validate_name() {
|
||||
if [ "$(echo -n "e0a_${NAME_VERIFY}" | awk '{print length}')" -ge 16 ]; then
|
||||
name_prefix="$(echo ${NAME_VERIFY} | cut -c1-7)"
|
||||
name_suffix="$(echo ${NAME_VERIFY} | rev | cut -c1-2 | rev)"
|
||||
if find "${bastille_jailsdir}"/*/jail.conf -maxdepth 1 -type f -print0 2> /dev/null | xargs -r0 -P0 grep -h -oqs "e0b_"${name_prefix}"xx"${name_suffix}" 2>/dev/null; then
|
||||
if find "${bastille_jailsdir}"/*/jail.conf -maxdepth 1 -type f -print0 2> /dev/null | xargs -r0 -P0 grep -h -oqs "e0b_${name_prefix}xx${name_suffix}" 2>/dev/null; then
|
||||
error_exit "[ERROR]: Invalid jail name due to epair naming limitations. See documentation for details."
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user