mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-21 17:52:01 +01:00
Update create.sh
This commit is contained in:
@@ -692,7 +692,8 @@ create_jail() {
|
||||
|
||||
# Apply nameserver (if set)
|
||||
if [ -n "${OPT_NAMESERVER}" ]; then
|
||||
sed -i '' "s#nameserver.*#nameserver ${OPT_NAMESERVER}#" "${bastille_jail_resolv_conf}"
|
||||
sed -i '' "/^nameserver.*/d" "${bastille_jail_resolv_conf}"
|
||||
echo "nameserver ${OPT_NAMESERVER}" >> "${bastille_jail_resolv_conf}"
|
||||
fi
|
||||
|
||||
# Apply values changed by the template. -- cwells
|
||||
|
||||
Reference in New Issue
Block a user