From 570c80ba8582836fe1ab9de07c2a87b5c33aca35 Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Thu, 23 Dec 2021 14:13:23 -0700 Subject: [PATCH] change new PKG option from -P to -H --- usr/local/bin/bastille | 3 ++- usr/local/share/bastille/pkg.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/local/bin/bastille b/usr/local/bin/bastille index 06107db5..65c928da 100755 --- a/usr/local/bin/bastille +++ b/usr/local/bin/bastille @@ -155,7 +155,7 @@ clone|config|cmd|console|convert|cp|edit|htop|limits|mount|pkg|rename|service|st JAILS="${JAILS} ${_jail}" fi done - elif [ "${CMD}" = "pkg" ] && [ "${TARGET}" = '-P' ] || [ "${TARGET}" = '--pkg' ]; then + elif [ "${CMD}" = "pkg" ] && [ "${TARGET}" = '-H' ] || [ "${TARGET}" = '--host' ]; then TARGET="${1}" USE_HOST_PKG=1 JAILS="${TARGET}" @@ -191,6 +191,7 @@ clone|config|cmd|console|convert|cp|edit|htop|limits|mount|pkg|rename|service|st ;; esac fi + export USE_HOST_PKG export TARGET export JAILS fi diff --git a/usr/local/share/bastille/pkg.sh b/usr/local/share/bastille/pkg.sh index 63785178..56c9973c 100644 --- a/usr/local/share/bastille/pkg.sh +++ b/usr/local/share/bastille/pkg.sh @@ -31,7 +31,7 @@ . /usr/local/share/bastille/common.sh usage() { - error_exit "Usage: bastille pkg [-P|--pkg] TARGET command [args]" + error_exit "Usage: bastille pkg [-H|--host] TARGET command [args]" } # Handle special-case commands first.