From 4a6db5d3ff9f824572345913200710bab3af2944 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 16 Dec 2021 07:43:33 +0100 Subject: [PATCH] bootstrap: snapshot mode -z instead of -r snapshots --- src/bootstrap/opnsense-bootstrap.sh.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/opnsense-bootstrap.sh.in b/src/bootstrap/opnsense-bootstrap.sh.in index 8299ba2..a884848 100755 --- a/src/bootstrap/opnsense-bootstrap.sh.in +++ b/src/bootstrap/opnsense-bootstrap.sh.in @@ -41,7 +41,7 @@ DO_QUICK= DO_VERBOSE= DO_YES= -while getopts a:bfin:qr:t:vVy OPT; do +while getopts a:bfin:qr:t:vVyz OPT; do case ${OPT} in a) DO_ABI="-a ${OPTARG}" @@ -77,6 +77,9 @@ while getopts a:bfin:qr:t:vVy OPT; do y) DO_YES="-y" ;; + z) + DO_SNAPSHOT="-z" + ;; *) echo "Usage: man ${0##*/}" >&2 exit 1 @@ -193,8 +196,8 @@ fi SUBFILE="stable/${RELEASE}" SUBDIR="stable-${RELEASE}" -if [ "${RELEASE}" = "snapshot" ]; then - RELEASE="snapshots" + +if [ -n "${DO_SNAPSHOT}" ]; then SUBDIR="master" SUBFILE="master" fi