create: Add depend value

This commit is contained in:
tschettervictor
2025-05-02 08:37:51 -06:00
committed by GitHub
parent 5344eb9ba5
commit 6ebdb4e9d7

View File

@@ -576,8 +576,9 @@ create_jail() {
# Set strict permissions on the jail by default
chmod 0700 "${bastille_jailsdir}/${NAME}"
# Apply priority and boot settings before starting jail
# Apply boot, depends and priority settings before starting jail
sysrc -f "${bastille_jailsdir}/${NAME}/boot.conf" boot=${BOOT} >/dev/null
sysrc -f "${bastille_jailsdir}/${NAME}/settings.conf" depend="" >/dev/null
sysrc -f "${bastille_jailsdir}/${NAME}/boot.conf" priority="${PRIORITY}" >/dev/null
# Jail must be started before applying the default template. -- cwells
@@ -1041,4 +1042,4 @@ fi
create_jail "${NAME}" "${RELEASE}" "${IP}" "${INTERFACE}"
echo
echo