domain + subdomain
This commit is contained in:
@@ -108,7 +108,7 @@ COMMAND_NAME=$(basename "$0")
|
||||
|
||||
# read the options
|
||||
|
||||
TEMP=$(getopt -n "$COMMAND_NAME" -o crud --long port:,container:,name:,fqdn: -- "$@")
|
||||
TEMP=$(getopt -n "$COMMAND_NAME" -o crud --long port:,container:,name:,fqdn:,domain:,subdomain: -- "$@")
|
||||
# shellcheck disable=SC2181
|
||||
[[ "$?" -eq 0 ]] || usage
|
||||
eval set -- "$TEMP"
|
||||
@@ -138,6 +138,12 @@ while true; do
|
||||
longname="dolibarr-$shortname"
|
||||
shift 2
|
||||
;;
|
||||
--domain)
|
||||
shift 2
|
||||
;;
|
||||
--subdomain)
|
||||
shift 2
|
||||
;;
|
||||
-c)
|
||||
[[ "$action" == "unset" ]] || usage
|
||||
action="_create"
|
||||
@@ -163,7 +169,7 @@ while true; do
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "Internal error!"
|
||||
echo "Internal error: unrecognized option: <$1>"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user