Add checking for FreeBSD and HardenedBSD on upgrades
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.0.80......Add checking for FreeBSD and HardenedBSD on upgrades.
|
||||||
1.0.79......Don't set template for empty jails, include files for 12.2 release.
|
1.0.79......Don't set template for empty jails, include files for 12.2 release.
|
||||||
1.0.78......Fix for proper bastille config update.
|
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.
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ BATSILLE_ALT="https://github.com/JRGTH/${APPNAME}/archive/${BRANCH}.zip" # Alter
|
|||||||
BASTILE_VERSION="https://raw.githubusercontent.com/BastilleBSD/${APPNAME}/${BRANCH}/usr/local/bin/${APPNAME}"
|
BASTILE_VERSION="https://raw.githubusercontent.com/BastilleBSD/${APPNAME}/${BRANCH}/usr/local/bin/${APPNAME}"
|
||||||
GITURL="https://github.com/JRGTH/xigmanas-${APPNAME}-extension/archive/${BRANCH}.zip"
|
GITURL="https://github.com/JRGTH/xigmanas-${APPNAME}-extension/archive/${BRANCH}.zip"
|
||||||
VERFILE="https://raw.githubusercontent.com/JRGTH/xigmanas-${APPNAME}-extension/${BRANCH}/version"
|
VERFILE="https://raw.githubusercontent.com/JRGTH/xigmanas-${APPNAME}-extension/${BRANCH}/version"
|
||||||
|
URL_FREEBSD="http://ftp.freebsd.org/pub/FreeBSD/releases/"
|
||||||
|
URL_HARDENEDBSD="http://installer.hardenedbsd.org/pub/hardenedbsd/"
|
||||||
OPT="${1}"
|
OPT="${1}"
|
||||||
|
|
||||||
# Bastille required
|
# Bastille required
|
||||||
@@ -1043,6 +1045,12 @@ update_config()
|
|||||||
if grep -qw 'bastille_jail_gateway=' ${BASTILLECONF}; then
|
if grep -qw 'bastille_jail_gateway=' ${BASTILLECONF}; then
|
||||||
sed -i '' 's/bastille_jail_gateway=/bastille_network_gateway=/' ${BASTILLECONF}
|
sed -i '' 's/bastille_jail_gateway=/bastille_network_gateway=/' ${BASTILLECONF}
|
||||||
fi
|
fi
|
||||||
|
if ! grep -q 'bastille_url_freebsd=' ${BASTILLECONF}; then
|
||||||
|
sysrc -f ${BASTILLECONF} bastille_url_freebsd="${URL_FREEBSD}"
|
||||||
|
fi
|
||||||
|
if ! grep -q 'bastille_url_hardenedbsd=' ${BASTILLECONF}; then
|
||||||
|
sysrc -f ${BASTILLECONF} bastille_url_hardenedbsd="${URL_HARDENEDBSD}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Template parameters.
|
# Template parameters.
|
||||||
if ! grep -qw 'bastille_template_base=' ${BASTILLECONF}; then
|
if ! grep -qw 'bastille_template_base=' ${BASTILLECONF}; then
|
||||||
|
|||||||
Reference in New Issue
Block a user