mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-03 19:23:42 +01:00
@@ -69,7 +69,7 @@ bastille_perms_check
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
## version
|
## version
|
||||||
BASTILLE_VERSION="0.4.20190714"
|
BASTILLE_VERSION="0.4.20191025"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|||||||
@@ -28,3 +28,10 @@ bastille_zfs_zpool="" ## default: ""
|
|||||||
bastille_zfs_prefix="bastille" ## default: "${bastille_zfs_zpool}/bastille"
|
bastille_zfs_prefix="bastille" ## default: "${bastille_zfs_zpool}/bastille"
|
||||||
bastille_zfs_mountpoint=${bastille_prefix} ## default: "${bastille_prefix}"
|
bastille_zfs_mountpoint=${bastille_prefix} ## default: "${bastille_prefix}"
|
||||||
bastille_zfs_options="-o compress=lz4 -o atime=off" ## default: "-o compress=lz4 -o atime=off"
|
bastille_zfs_options="-o compress=lz4 -o atime=off" ## default: "-o compress=lz4 -o atime=off"
|
||||||
|
|
||||||
|
## Networking
|
||||||
|
bastille_jail_loopback="lo1" ## default: "lo1"
|
||||||
|
bastille_jail_interface="bastille0" ## default: "bastille0"
|
||||||
|
bastille_jail_external="" ## default: ""
|
||||||
|
bastille_jail_addr="10.17.89.10" ## default: "10.17.89.10"
|
||||||
|
bastille_jail_gateway="" ## default: ""
|
||||||
|
|||||||
@@ -362,24 +362,42 @@ HW_MACHINE_ARCH=$(sysctl hw.machine_arch | awk '{ print $2 }')
|
|||||||
|
|
||||||
# Filter sane release names
|
# Filter sane release names
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
11.3-RELEASE)
|
|
||||||
RELEASE="${1}"
|
|
||||||
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/11.3-RELEASE"
|
|
||||||
bootstrap_directories
|
|
||||||
bootstrap_release
|
|
||||||
;;
|
|
||||||
11.2-RELEASE)
|
11.2-RELEASE)
|
||||||
RELEASE="${1}"
|
RELEASE="${1}"
|
||||||
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/11.2-RELEASE"
|
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/11.2-RELEASE"
|
||||||
bootstrap_directories
|
bootstrap_directories
|
||||||
bootstrap_release
|
bootstrap_release
|
||||||
;;
|
;;
|
||||||
|
11.3-RELEASE)
|
||||||
|
RELEASE="${1}"
|
||||||
|
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/11.3-RELEASE"
|
||||||
|
bootstrap_directories
|
||||||
|
bootstrap_release
|
||||||
|
;;
|
||||||
12.0-RELEASE)
|
12.0-RELEASE)
|
||||||
RELEASE="${1}"
|
RELEASE="${1}"
|
||||||
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/12.0-RELEASE"
|
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/12.0-RELEASE"
|
||||||
bootstrap_directories
|
bootstrap_directories
|
||||||
bootstrap_release
|
bootstrap_release
|
||||||
;;
|
;;
|
||||||
|
12.1-RC1)
|
||||||
|
RELEASE="${1}"
|
||||||
|
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/12.1-RC1"
|
||||||
|
bootstrap_directories
|
||||||
|
bootstrap_release
|
||||||
|
;;
|
||||||
|
12.1-RC2)
|
||||||
|
RELEASE="${1}"
|
||||||
|
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/12.1-RC2"
|
||||||
|
bootstrap_directories
|
||||||
|
bootstrap_release
|
||||||
|
;;
|
||||||
|
12.1-RELEASE)
|
||||||
|
RELEASE="${1}"
|
||||||
|
UPSTREAM_URL="http://ftp.freebsd.org/pub/FreeBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/12.1-RELEASE"
|
||||||
|
bootstrap_directories
|
||||||
|
bootstrap_release
|
||||||
|
;;
|
||||||
11-stable-LAST)
|
11-stable-LAST)
|
||||||
RELEASE="${1}"
|
RELEASE="${1}"
|
||||||
UPSTREAM_URL="https://installer.hardenedbsd.org/pub/HardenedBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/hardenedbsd-11-stable-LAST"
|
UPSTREAM_URL="https://installer.hardenedbsd.org/pub/HardenedBSD/releases/${HW_MACHINE}/${HW_MACHINE_ARCH}/hardenedbsd-11-stable-LAST"
|
||||||
|
|||||||
Reference in New Issue
Block a user