mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 10:40:43 +01:00
Help output to show real value for options instead of [options]
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_exit "Usage: bastille console TARGET [user]'"
|
error_exit "Usage: bastille console TARGET [user]"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Handle special-case commands first.
|
# Handle special-case commands first.
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_exit "Usage: bastille create [option] name release ip [interface]"
|
error_exit "Usage: bastille create [empty|thick|vnet] name release ip [interface]"
|
||||||
}
|
}
|
||||||
|
|
||||||
running_jail() {
|
running_jail() {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_exit "Usage: bastille destroy [option] | [container|release]"
|
error_exit "Usage: bastille destroy [force] | [container|release]"
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy_jail() {
|
destroy_jail() {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_exit "Usage: bastille export TARGET [option] | PATH"
|
error_exit "Usage: bastille export TARGET [safe|tarball] | PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Handle special-case commands first
|
# Handle special-case commands first
|
||||||
@@ -57,12 +57,12 @@ SAFE_EXPORT=
|
|||||||
|
|
||||||
# Handle some options
|
# Handle some options
|
||||||
if [ -n "${OPTION}" ]; then
|
if [ -n "${OPTION}" ]; then
|
||||||
if [ "${OPTION}" = "-t" -o "${OPTION}" = "--txz" ]; then
|
if [ "${OPTION}" = "-t" -o "${OPTION}" = "--txz" -o ${OPTION} = "tarball" ]; then
|
||||||
if [ "${bastille_zfs_enable}" = "YES" ]; then
|
if [ "${bastille_zfs_enable}" = "YES" ]; then
|
||||||
# Temporarily disable ZFS so we can create a standard backup archive
|
# Temporarily disable ZFS so we can create a standard backup archive
|
||||||
bastille_zfs_enable="NO"
|
bastille_zfs_enable="NO"
|
||||||
fi
|
fi
|
||||||
elif [ "${OPTION}" = "-s" -o "${OPTION}" = "--safe" ]; then
|
elif [ "${OPTION}" = "-s" -o "${OPTION}" = "--safe" -o ${OPTION} = "safe" ]; then
|
||||||
SAFE_EXPORT="1"
|
SAFE_EXPORT="1"
|
||||||
elif echo "${OPTION}" | grep -q "\/"; then
|
elif echo "${OPTION}" | grep -q "\/"; then
|
||||||
if [ -d "${OPTION}" ]; then
|
if [ -d "${OPTION}" ]; then
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_exit "Usage: bastille import file [option]"
|
error_exit "Usage: bastille import file [force]"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Handle special-case commands first
|
# Handle special-case commands first
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_exit "Usage: bastille update [release|container] | [option]"
|
error_exit "Usage: bastille update [release|container] | [force]"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Handle special-case commands first.
|
# Handle special-case commands first.
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
error_exit "Usage: bastille upgrade release newrelease | target newrelease | target install | [option]"
|
error_exit "Usage: bastille upgrade release newrelease | target newrelease | target install | [force]"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Handle special-case commands first.
|
# Handle special-case commands first.
|
||||||
|
|||||||
Reference in New Issue
Block a user