From b67c16aba1ae6886ee7312df58245b73bf7ce9e8 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 4 Jan 2021 16:50:53 -0400 Subject: [PATCH] Fix for proper bastille config update --- CHANGELOG | 1 + bastille-init | 10 +++++----- version | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 6c50f63..59082b3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.0.78......Fix for proper bastille config update. 1.0.77......Enable 12.2 RELEASE downloads through the GUI. 1.0.76......Minor code changes. 1.0.75......Update bastille config and prepare for RELEASE 12.2. diff --git a/bastille-init b/bastille-init index f8c9420..ea05e56 100755 --- a/bastille-init +++ b/bastille-init @@ -1045,19 +1045,19 @@ update_config() fi # 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" 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" 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" 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" 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" fi diff --git a/version b/version index 5257575..f9ef507 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.77 +1.0.78