mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 10:40:43 +01:00
Update create.sh
This commit is contained in:
@@ -692,7 +692,8 @@ create_jail() {
|
|||||||
|
|
||||||
# Apply nameserver (if set)
|
# Apply nameserver (if set)
|
||||||
if [ -n "${OPT_NAMESERVER}" ]; then
|
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
|
fi
|
||||||
|
|
||||||
# Apply values changed by the template. -- cwells
|
# Apply values changed by the template. -- cwells
|
||||||
|
|||||||
Reference in New Issue
Block a user