Update common.sh

This commit is contained in:
tschettervictor
2025-05-20 12:18:22 -06:00
committed by GitHub
parent aa14003719
commit 4425d3ee25

View File

@@ -93,19 +93,6 @@ warn() {
echo -e "${COLOR_YELLOW}$*${COLOR_RESET}" echo -e "${COLOR_YELLOW}$*${COLOR_RESET}"
} }
escape_special_characters() {
# Escape special charcters for jail.conf files
# Only "." for now
local _string="${1}"
_escaped_string="$(echo ${_string} | sed 's#\.#\\\.#g')"
echo "${_escaped_string}"
}
# Parallel mode, don't exceed process limit # Parallel mode, don't exceed process limit
bastille_running_jobs() { bastille_running_jobs() {
@@ -517,6 +504,19 @@ EOF
fi fi
} }
parse_value_jail_conf() {
# Escape special charcters for compatability with jail.conf files
# Only "." for now
local _string="${1}"
_escaped_string="$(echo ${_string} | sed 's#\.#\\\.#g')"
echo "${_escaped_string}"
}
validate_netconf() { validate_netconf() {
# Add default 'bastille_network_vnet_type' on old config file # Add default 'bastille_network_vnet_type' on old config file