Merge pull request #1432 from BastilleBSD/tschettervictor-patch-1

edit: allow editing resolv.conf
This commit is contained in:
tschettervictor
2025-12-25 12:25:20 -07:00
committed by GitHub

View File

@@ -81,6 +81,9 @@ else
rc|rc.conf)
FILE="/root/etc/rc.conf"
;;
resolv|resolv.conf)
FILE="/root/etc/resolv.conf"
;;
*)
if [ ! -f "${bastille_jailsdir}/${TARGET}/${FILE}" ]; then
error_exit "[ERROR]: File not found: ${FILE}"
@@ -93,4 +96,4 @@ if [ -z "${EDITOR}" ]; then
EDITOR=edit
fi
"${EDITOR}" "${bastille_jailsdir}/${TARGET}/${FILE}"
"${EDITOR}" "${bastille_jailsdir}/${TARGET}/${FILE}"