mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 13:25:31 +00:00
lxc-alpine: add --repository option
This allows specifying what repository to use for the container. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
b1aa0624ba
commit
e5846a6f89
@ -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;;
|
||||
--*=*)
|
||||
|
Loading…
Reference in New Issue
Block a user