From e5af05fbccfd52d1a576aed760c703dd45dc83d5 Mon Sep 17 00:00:00 2001 From: JRGTH Date: Thu, 15 Jul 2021 12:02:10 -0400 Subject: [PATCH] check for required variables for bastille 0.9.x --- CHANGELOG | 1 + bastille-init | 8 ++++++++ version | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index fe4ac78..a6921c8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.0.94......check for required variables for bastille 0.9.x. 1.0.93......Quick update to support bastille 0.9.x. 1.0.92......Set file permissions. 1.0.91......Add required files from FreeBSD 13.0 base release, update config. diff --git a/bastille-init b/bastille-init index 53e219f..710d40e 100755 --- a/bastille-init +++ b/bastille-init @@ -1062,6 +1062,14 @@ rc_params() sysrc -f ${BASTILLECONF} bastille_prefix="${CWDIR}" >/dev/null 2>&1 fi + # Set required variables. + if ! sysrc -f ${BASTILLECONF} -qc bastille_compress_gz_options; then + sysrc -f ${BASTILLECONF} bastille_compress_gz_options="-1 -v" >/dev/null 2>&1 + fi + if ! sysrc -f ${BASTILLECONF} -qc bastille_decompress_gz_options; then + sysrc -f ${BASTILLECONF} bastille_decompress_gz_options="-k -d -c -v" >/dev/null 2>&1 + fi + # Set bastille.conf location. if ! sysrc -f ${CWDIR}${EXTCONF} -n BASTILLE_CONFIG 2>/dev/null | grep -q "${CWDIR}/${FULLAPPNAME}${BASTILLECONF}"; then sysrc -f ${CWDIR}${EXTCONF} BASTILLE_CONFIG="${CWDIR}/${FULLAPPNAME}${BASTILLECONF}" >/dev/null 2>&1 diff --git a/version b/version index 87903b6..00572ce 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.93 +1.0.94