bastille-init aktualisiert
This commit is contained in:
@@ -1129,6 +1129,10 @@ get_versions()
|
||||
exit 0
|
||||
}
|
||||
|
||||
rcordered_list() {
|
||||
bastille_ordered_list=$(rcorder -s nostart ${CWDIR}/jails/*/jail.conf | xargs dirname | xargs basename -a | tr "\n" " ")
|
||||
}
|
||||
|
||||
ext_start()
|
||||
{
|
||||
if sysrc -f ${CWDIR}${EXTCONF} -qn LINUX_COMPAT_SUPPORT | grep -q "YES"; then
|
||||
@@ -1138,7 +1142,7 @@ ext_start()
|
||||
|
||||
# Start bastille jails.
|
||||
if [ -d "${CWDIR}/jails" ]; then
|
||||
JAIL_LIST=$(bastille list jail)
|
||||
JAIL_LIST=$bastille_ordered_list
|
||||
for jail in ${JAIL_LIST}; do
|
||||
if grep -qw "${jail}_AUTO_START=\"YES\"" ${CWDIR}${EXTCONF}; then
|
||||
if ! jls | sed "1 d" | awk '{print $3}' | grep -qw ${jail}; then
|
||||
|
||||
Reference in New Issue
Block a user