[deployarmimg] add -u flag to define OSDN username

parent 3be8ee93
......@@ -12,7 +12,7 @@ source $LIBDIR/functions.sh
#Arguments
opt=":i:d:e:v:k:th"
opt=":i:d:e:v:k:u:th"
while getopts "${opt}" arg; do
case $arg in
......@@ -31,6 +31,9 @@ while getopts "${opt}" arg; do
k)
GPGMAIL="${OPTARG}"
;;
u)
STORAGE_USER="${OPTARG}"
;;
t)
TORRENT="true"
;;
......
......@@ -34,6 +34,7 @@ usage_deploy_img() {
echo " -e <edition> Edition of the image. [Default = minimal. Options = $(ls -m --width=0 "$PROFILES/arm-profiles/editions/")]"
echo " -v <version> Version of the image. [Default = Current YY.MM]"
echo " -k <gpg key ID> Email address associated with the GPG key to use for signing"
echo " -u <username> Username of your OSDN user account with access to upload [Default = currently logged in local user]"
echo " -t Create a torrent of the image"
echo ' -h This help'
echo ''
......
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