Switch back to official bastille repository, simplify initial help banner
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.0.64......Switch back to official bastille repository, simplify initial help banner.
|
||||||
1.0.63......Always apply required updates after platform check.
|
1.0.63......Always apply required updates after platform check.
|
||||||
1.0.62......Check/apply required updates to bastille while checking for upgrades.
|
1.0.62......Check/apply required updates to bastille while checking for upgrades.
|
||||||
1.0.61......Display static inet ip from vnet jail config.
|
1.0.61......Display static inet ip from vnet jail config.
|
||||||
|
|||||||
+9
-4
@@ -66,6 +66,7 @@ EXTCONFLINK="/var/etc/${APPNAME}_conf"
|
|||||||
BASTILLERCD="/usr/local/etc/rc.d/${APPNAME}"
|
BASTILLERCD="/usr/local/etc/rc.d/${APPNAME}"
|
||||||
BASTILLEPATH="${USRLOCAL}/bin"
|
BASTILLEPATH="${USRLOCAL}/bin"
|
||||||
BASTILLECONF="${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf"
|
BASTILLECONF="${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf"
|
||||||
|
BASTILLECONFFILE="/conf/bastille_conf"
|
||||||
BASTILLECONFLINK="/var/etc/bastille_conf"
|
BASTILLECONFLINK="/var/etc/bastille_conf"
|
||||||
BASTILLECONF_EXT="${CWDIR}/conf/bastille.conf.ext"
|
BASTILLECONF_EXT="${CWDIR}/conf/bastille.conf.ext"
|
||||||
INCLUDE_PATH="${CWDIR}/conf/system"
|
INCLUDE_PATH="${CWDIR}/conf/system"
|
||||||
@@ -73,8 +74,8 @@ FREEBSD_UPDATE="${INCLUDE_PATH}/freebsd-update/${HOSTVERSION}"
|
|||||||
SYSTEM_INCLUDE="${INCLUDE_PATH}/include/${HOSTVERSION}"
|
SYSTEM_INCLUDE="${INCLUDE_PATH}/include/${HOSTVERSION}"
|
||||||
INSTALLPATH="${CWDIR}/${FULLAPPNAME}"
|
INSTALLPATH="${CWDIR}/${FULLAPPNAME}"
|
||||||
BRANCH="master"
|
BRANCH="master"
|
||||||
#BATSILLE_URL="https://github.com/BastilleBSD/${APPNAME}/archive/${BRANCH}.zip" # Official Bastille Repository)
|
BATSILLE_URL="https://github.com/BastilleBSD/${APPNAME}/archive/${BRANCH}.zip" # Official Bastille Repository)
|
||||||
BATSILLE_URL="https://github.com/JRGTH/${APPNAME}/archive/${BRANCH}.zip" # Alternate Bastille Repository, early updates)
|
BATSILLE_ALT="https://github.com/JRGTH/${APPNAME}/archive/${BRANCH}.zip" # Alternate Bastille Repository, early updates)
|
||||||
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"
|
||||||
@@ -106,7 +107,7 @@ runtime_config()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for directories.
|
# Check for required directories and files.
|
||||||
if [ ! -d "${CWDIR}/backups" ]; then
|
if [ ! -d "${CWDIR}/backups" ]; then
|
||||||
mkdir -p ${CWDIR}/backups
|
mkdir -p ${CWDIR}/backups
|
||||||
fi
|
fi
|
||||||
@@ -122,6 +123,9 @@ runtime_config()
|
|||||||
if [ ! -d "${CWDIR}/freebsd-update" ]; then
|
if [ ! -d "${CWDIR}/freebsd-update" ]; then
|
||||||
mkdir ${CWDIR}/freebsd-update
|
mkdir ${CWDIR}/freebsd-update
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f "${CWDIR}${BASTILLECONFFILE}" ]; then
|
||||||
|
touch ${CWDIR}${BASTILLECONFFILE}
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for permissions.
|
# Check for permissions.
|
||||||
if [ -f "${FREEBSD_UPDATE}/freebsd-update" ]; then
|
if [ -f "${FREEBSD_UPDATE}/freebsd-update" ]; then
|
||||||
@@ -392,7 +396,8 @@ include_files()
|
|||||||
|
|
||||||
required_updates()
|
required_updates()
|
||||||
{
|
{
|
||||||
# Check for required updates and bug fixes.
|
# Check for critical and/or required updates and bug fixes and apply them.
|
||||||
|
# This is because not always the bastille version is increased on updates and/or bug fixes.
|
||||||
if [ -f "${INSTALLPATH}${USRLOCAL}/share/${APPNAME}/rename.sh" ]; then
|
if [ -f "${INSTALLPATH}${USRLOCAL}/share/${APPNAME}/rename.sh" ]; then
|
||||||
if ! grep -qwE '{ZFS_DATASET_ORIGIN}(.*){ZFS_DATASET_TARGET}' ${INSTALLPATH}${USRLOCAL}/share/${APPNAME}/rename.sh; then
|
if ! grep -qwE '{ZFS_DATASET_ORIGIN}(.*){ZFS_DATASET_TARGET}' ${INSTALLPATH}${USRLOCAL}/share/${APPNAME}/rename.sh; then
|
||||||
echo "Required update found, performing update..."
|
echo "Required update found, performing update..."
|
||||||
|
|||||||
@@ -54,12 +54,12 @@ if(!initial_install_banner()):
|
|||||||
$errormsg = gtext('Bastille Initial Configuration.')
|
$errormsg = gtext('Bastille Initial Configuration.')
|
||||||
. ' '
|
. ' '
|
||||||
. '</br>'
|
. '</br>'
|
||||||
. gtext('Please check and configure the following ZFS options: BASTILLE_ZFS_ENABLE and BASTILLE_ZFS_ZPOOL.')
|
. gtext('Please check and configure the following entries: "BASTILLE_ZFS_ENABLE" and "BASTILLE_ZFS_ZPOOL".')
|
||||||
.'</br>'
|
|
||||||
. gtext('Where BASTILLE_ZFS_ENABLE can be set to "YES", and BASTILLE_ZFS_ZPOOL can be set to "tank" or even "tank/dataset1/dataset2" accordingly.')
|
|
||||||
.'</br>'
|
.'</br>'
|
||||||
|
. gtext('After configuring or skip ZFS option:')
|
||||||
|
. ' '
|
||||||
. '<a href="' . 'bastille_manager_maintenance.php' . '">'
|
. '<a href="' . 'bastille_manager_maintenance.php' . '">'
|
||||||
. gtext('After either configuring or skip this ZFS option, please visit this link to Enable/Disable ZFS Support on Bastille.')
|
. gtext('Please click here then push "Save" button.')
|
||||||
. '</a>';
|
. '</a>';
|
||||||
$prerequisites_ok = false;
|
$prerequisites_ok = false;
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
@@ -76,14 +76,16 @@ $jls_list = get_jail_infos();
|
|||||||
$sphere_array = $jls_list;
|
$sphere_array = $jls_list;
|
||||||
|
|
||||||
if(!initial_install_banner()):
|
if(!initial_install_banner()):
|
||||||
$errormsg = gtext('Bastille Initial Configuration.')
|
$errormsg = gtext('Bastille Initial Configuration:')
|
||||||
. ' '
|
. ' '
|
||||||
. '<a href="' . 'bastille_manager_config.php' . '">'
|
. '<a href="' . 'bastille_manager_config.php' . '">'
|
||||||
. gtext('Please check and configure ZFS support option first.')
|
. gtext('Please check and configure ZFS support option first.')
|
||||||
. '</a>'
|
. '</a>'
|
||||||
. '</br>'
|
. '</br>'
|
||||||
|
. gtext('Alternatively to skip this step:')
|
||||||
|
. ' '
|
||||||
. '<a href="' . 'bastille_manager_maintenance.php' . '">'
|
. '<a href="' . 'bastille_manager_maintenance.php' . '">'
|
||||||
. gtext('To skip this step, click this link and then push Save.')
|
. gtext('Please click here then push "Save" button.')
|
||||||
. '</a>';
|
. '</a>';
|
||||||
$prerequisites_ok = false;
|
$prerequisites_ok = false;
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ if(!initial_install_banner()):
|
|||||||
. gtext('Please check and configure ZFS support option first.')
|
. gtext('Please check and configure ZFS support option first.')
|
||||||
. '</a>'
|
. '</a>'
|
||||||
. '</br>'
|
. '</br>'
|
||||||
. gtext('Or click Save to store current configuration regardless.');
|
. gtext('Or click the "Save" button to store the default configuration.');
|
||||||
$prerequisites_ok = false;
|
$prerequisites_ok = false;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user