clone: Fix old to new interface style

This commit is contained in:
tschettervictor
2025-03-21 05:43:04 -06:00
committed by GitHub
parent 47faf79f3a
commit 0f3b5baf83

View File

@@ -165,7 +165,7 @@ update_jailconf() {
_ip="$(echo ${_ip} | awk -F"|" '{print $2}')"
fi
if [ "${_interface}" != "not set" ]; then
sed -i '' "s/.*${_interface} = .*/ 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}"
fi