Remove obsolete code, update config
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.0.36......Remove obsolete code, update config.
|
||||||
1.0.35......Use bastille built-in convert function.
|
1.0.35......Use bastille built-in convert function.
|
||||||
1.0.34......Use bastille built-in export/import functions.
|
1.0.34......Use bastille built-in export/import functions.
|
||||||
1.0.33......Use rsync during jail conversion.
|
1.0.33......Use rsync during jail conversion.
|
||||||
|
|||||||
+1
-20
@@ -53,10 +53,6 @@ SCRIPTNAME=$(basename $0)
|
|||||||
CONFIG="/cf/conf/config.xml"
|
CONFIG="/cf/conf/config.xml"
|
||||||
PRDNAME="Bastille"
|
PRDNAME="Bastille"
|
||||||
APPNAME="bastille"
|
APPNAME="bastille"
|
||||||
DEF_ZFS_SENDPARAMS=""
|
|
||||||
DEF_ZFS_RECVPARAM=""
|
|
||||||
DEF_ZFS_COMPRESS="xz -0 -v --threads=0"
|
|
||||||
DEF_ZFS_DECOMPRESS="xz -c -d -v --threads=0"
|
|
||||||
EXTLOGFILE="${CWDIR}/log/bastille_ext.log"
|
EXTLOGFILE="${CWDIR}/log/bastille_ext.log"
|
||||||
FULLAPPNAME="${APPNAME}-dist"
|
FULLAPPNAME="${APPNAME}-dist"
|
||||||
WWWPATH="/usr/local/www"
|
WWWPATH="/usr/local/www"
|
||||||
@@ -79,7 +75,6 @@ BASTILE_VERSION="https://raw.githubusercontent.com/BastilleBSD/${APPNAME}/${BRAN
|
|||||||
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"
|
||||||
OPT="${1}"
|
OPT="${1}"
|
||||||
NAME="${2}"
|
|
||||||
|
|
||||||
# Required
|
# Required
|
||||||
if [ -f "${BASTILLECONF}" ]; then
|
if [ -f "${BASTILLECONF}" ]; then
|
||||||
@@ -124,21 +119,7 @@ runtime_config()
|
|||||||
FREEBSD_UPDATE_PERMS=$(stat -f "%Op" ${FREEBSD_UPDATE}/freebsd-update)
|
FREEBSD_UPDATE_PERMS=$(stat -f "%Op" ${FREEBSD_UPDATE}/freebsd-update)
|
||||||
if [ "${FREEBSD_UPDATE_PERMS}" != 100555 ]; then
|
if [ "${FREEBSD_UPDATE_PERMS}" != 100555 ]; then
|
||||||
chmod 0555 ${FREEBSD_UPDATE}/freebsd-update
|
chmod 0555 ${FREEBSD_UPDATE}/freebsd-update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set rquired zfs send/recv parameters is missing.
|
|
||||||
if ! grep -qw "ZFS_SENDPARAMS=" ${CWDIR}${EXTCONF} >/dev/null 2>&1; then
|
|
||||||
sysrc -f ${CWDIR}${EXTCONF} ZFS_SENDPARAMS="${DEF_ZFS_SENDPARAMS}" >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
if ! grep -qw "ZFS_RECVPARAM=" ${CWDIR}${EXTCONF} >/dev/null 2>&1; then
|
|
||||||
sysrc -f ${CWDIR}${EXTCONF} ZFS_RECVPARAM="${DEF_ZFS_RECVPARAM}" >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
if ! grep -qw "DEFAULT_COMPRESS=" ${CWDIR}${EXTCONF} >/dev/null 2>&1; then
|
|
||||||
sysrc -f ${CWDIR}${EXTCONF} ZFS_COMPRESS="${DEF_ZFS_COMPRESS}" >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
if ! grep -qw "DEFAULT_DECOMPRESS=" ${CWDIR}${EXTCONF} >/dev/null 2>&1; then
|
|
||||||
sysrc -f ${CWDIR}${EXTCONF} ZFS_DECOMPRESS="${DEF_ZFS_DECOMPRESS}" >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bastille_initial_download()
|
bastille_initial_download()
|
||||||
|
|||||||
@@ -8,11 +8,15 @@ bastille_sharedir="/usr/local/share/bastille"
|
|||||||
bastille_bootstrap_archives="base"
|
bastille_bootstrap_archives="base"
|
||||||
bastille_tzdata="etc/UTC"
|
bastille_tzdata="etc/UTC"
|
||||||
bastille_resolv_conf="/etc/resolv.conf"
|
bastille_resolv_conf="/etc/resolv.conf"
|
||||||
|
bastille_url_freebsd="http://ftp.freebsd.org/pub/FreeBSD/releases/"
|
||||||
|
bastille_url_hardenedbsd="http://installer.hardenedbsd.org/pub/hardenedbsd/"
|
||||||
bastille_zfs_enable=""
|
bastille_zfs_enable=""
|
||||||
bastille_zfs_zpool=""
|
bastille_zfs_zpool=""
|
||||||
bastille_zfs_prefix="bastille"
|
bastille_zfs_prefix="bastille"
|
||||||
bastille_zfs_mountpoint="${bastille_prefix}"
|
bastille_zfs_mountpoint="${bastille_prefix}"
|
||||||
bastille_zfs_options="-o compress=lz4 -o atime=off"
|
bastille_zfs_options="-o compress=lz4 -o atime=off"
|
||||||
|
bastille_compress_xz_options="-0 -v"
|
||||||
|
bastille_decompress_xz_options="-c -d -v"
|
||||||
bastille_jail_loopback=""
|
bastille_jail_loopback=""
|
||||||
bastille_jail_interface=""
|
bastille_jail_interface=""
|
||||||
bastille_jail_external=""
|
bastille_jail_external=""
|
||||||
|
|||||||
Reference in New Issue
Block a user