Start jails if directory not empty
This commit is contained in:
+7
-3
@@ -547,9 +547,13 @@ get_versions()
|
|||||||
ext_start()
|
ext_start()
|
||||||
{
|
{
|
||||||
# Start bastille jails.
|
# Start bastille jails.
|
||||||
JAIL_AUTO_START=$(sysrc -qn bastille_enable)
|
if [ -d "${CWDIR}/jails" ]; then
|
||||||
if [ "${JAIL_AUTO_START}" = "YES" ]; then
|
if [ "$(ls -A ${CWDIR}/jails)" ]; then
|
||||||
service bastille start
|
JAIL_AUTO_START=$(sysrc -qn bastille_enable)
|
||||||
|
if [ "${JAIL_AUTO_START}" = "YES" ]; then
|
||||||
|
service bastille start
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
0.0.4......Start jails if directory not empty.
|
||||||
0.0.3......Minor code adjustment.
|
0.0.3......Minor code adjustment.
|
||||||
0.0.2......Added addon preview page.
|
0.0.2......Added addon preview page.
|
||||||
0.0.1......First Release.
|
0.0.1......First Release.
|
||||||
|
|||||||
Reference in New Issue
Block a user