mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-26 07:21:15 +01:00
Merge pull request #1039 from BastilleBSD/tschettervictor-patch-1
This commit is contained in:
@@ -181,9 +181,9 @@ update_jailconf() {
|
||||
_ip="$(echo ${_ip} | awk -F"|" '{print $2}')"
|
||||
fi
|
||||
if [ "${_interface}" != "not set" ]; then
|
||||
sed -i '' "s/.*ip4.addr = .*/ ip4.addr = ${_interface}|${IP};/" "${JAIL_CONFIG}"
|
||||
sed -i '' "s#.*ip4.addr = .*# ip4.addr = ${_interface}|${IP};#" "${JAIL_CONFIG}"
|
||||
else
|
||||
sed -i '' "/ip4.addr = .*/ s/${_ip}/${IP}/" "${JAIL_CONFIG}"
|
||||
sed -i '' "/ip4.addr = .*/ s#${_ip}#${IP}#" "${JAIL_CONFIG}"
|
||||
fi
|
||||
sed -i '' "/ip4.addr += .*/ s/${_ip}/127.0.0.1/" "${JAIL_CONFIG}"
|
||||
done
|
||||
@@ -487,4 +487,4 @@ info "\nAttempting to clone '${TARGET}' to '${NEWNAME}'..."
|
||||
|
||||
clone_jail
|
||||
|
||||
echo
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user