summaryrefslogtreecommitdiffstats
path: root/libexec/container/get
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/get18
1 files changed, 14 insertions, 4 deletions
diff --git a/libexec/container/get b/libexec/container/get
index 2b41ba8..ad98f45 100755
--- a/libexec/container/get
+++ b/libexec/container/get
@@ -27,13 +27,12 @@ COMMAND="$(basename ${0})"
CONFIG="/etc/${SOFTWARE}/config"
HOOKS="/etc/${SOFTWARE}/hooks"
MACHINES="/var/lib/machines"
-SCRIPTS="/usr/share/${SOFTWARE}/get-scripts"
-CONFIG_TEMPLATE="/usr/share/${SOFTWARE}/config/container.conf.in"
+SCRIPTS="/usr/share/${SOFTWARE}/scripts"
Parameters ()
{
- GETOPT_LONGOPTIONS="name:,cnt.container-server:,cnt.overlay:,cnt.overlay-options:,start:,bind:,bind-ro:,capability:,drop-capability:,script:,verbose,"
- GETOPT_OPTIONS="n:,b:,c:,d:,s:,v,"
+ GETOPT_LONGOPTIONS="name:,cnt.container-server:,cnt.overlay:,cnt.overlay-options:,start:,bind:,bind-ro:,capability:,drop-capability:,script:,config-template:,verbose,"
+ GETOPT_OPTIONS="n:,b:,c:,d:,s:,t:,v,"
PARAMETERS="$(getopt --longoptions ${GETOPT_LONGOPTIONS} --name=${COMMAND} --options ${GETOPT_OPTIONS} --shell sh -- ${@})"
@@ -103,6 +102,11 @@ Parameters ()
shift 2
;;
+ -t|--config-template)
+ CONFIG_TEMPLATE="${2}"
+ shift 2
+ ;;
+
-v|--verbose)
VERBOSE="true"
shift 1
@@ -180,6 +184,12 @@ else
fi
fi
+case "${CONFIG_TEMPLATE}" in
+ '')
+ CONFIG_TEMPLATE="/usr/share/${SOFTWARE}/config/container.conf.in"
+ ;;
+esac
+
case "${VERBOSE}" in
true)