Fix for proper bastille config update
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.0.78......Fix for proper bastille config update.
|
||||||
1.0.77......Enable 12.2 RELEASE downloads through the GUI.
|
1.0.77......Enable 12.2 RELEASE downloads through the GUI.
|
||||||
1.0.76......Minor code changes.
|
1.0.76......Minor code changes.
|
||||||
1.0.75......Update bastille config and prepare for RELEASE 12.2.
|
1.0.75......Update bastille config and prepare for RELEASE 12.2.
|
||||||
|
|||||||
+5
-5
@@ -1045,19 +1045,19 @@ update_config()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Template parameters.
|
# Template parameters.
|
||||||
if grep -qw 'bastille_template_base=' ${BASTILLECONF}; then
|
if ! grep -qw 'bastille_template_base=' ${BASTILLECONF}; then
|
||||||
sysrc -f ${BASTILLECONF} bastille_template_base="default/base"
|
sysrc -f ${BASTILLECONF} bastille_template_base="default/base"
|
||||||
fi
|
fi
|
||||||
if grep -qw 'bastille_template_empty=' ${BASTILLECONF}; then
|
if ! grep -qw 'bastille_template_empty=' ${BASTILLECONF}; then
|
||||||
sysrc -f ${BASTILLECONF} bastille_template_empty="default/empty"
|
sysrc -f ${BASTILLECONF} bastille_template_empty="default/empty"
|
||||||
fi
|
fi
|
||||||
if grep -qw 'bastille_template_thick=' ${BASTILLECONF}; then
|
if ! grep -qw 'bastille_template_thick=' ${BASTILLECONF}; then
|
||||||
sysrc -f ${BASTILLECONF} bastille_template_thick="default/thick"
|
sysrc -f ${BASTILLECONF} bastille_template_thick="default/thick"
|
||||||
fi
|
fi
|
||||||
if grep -qw 'bastille_template_thin=' ${BASTILLECONF}; then
|
if ! grep -qw 'bastille_template_thin=' ${BASTILLECONF}; then
|
||||||
sysrc -f ${BASTILLECONF} bastille_template_thin="default/thin"
|
sysrc -f ${BASTILLECONF} bastille_template_thin="default/thin"
|
||||||
fi
|
fi
|
||||||
if grep -qw 'bastille_template_vnet=' ${BASTILLECONF}; then
|
if ! grep -qw 'bastille_template_vnet=' ${BASTILLECONF}; then
|
||||||
sysrc -f ${BASTILLECONF} bastille_template_vnet="default/vnet"
|
sysrc -f ${BASTILLECONF} bastille_template_vnet="default/vnet"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user