mirror of
https://github.com/hackacad/bastille.git
synced 2026-03-23 18:35:04 +01:00
edit: allow editing resolv.conf
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user