Commit e5846a6f by Natanael Copa Committed by Stéphane Graber

lxc-alpine: add --repository option

This allows specifying what repository to use for the container. Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent b1aa0624
......@@ -119,7 +119,10 @@ die() {
}
usage() {
echo "Usage: $(basename $0) [-h|--help] -p|--path <path> -n|--name <name>" >&2
cat >&2 <<EOF
Usage: $(basename $0) [-h|--help] [-r|--repository <url>]
-p|--path <path> -n|--name <name>
EOF
}
usage_err() {
......@@ -153,6 +156,11 @@ while [ $# -gt 0 ]; do
path=$1
shift
;;
-r|--repository)
optarg_check $opt "$1"
repository=$1
shift
;;
--)
break;;
--*=*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment