domain + subdomain

This commit is contained in:
pvincent
2024-10-09 11:38:59 +04:00
parent 5ac2e4842d
commit ac7268731a
10 changed files with 179 additions and 28 deletions
+8 -2
View File
@@ -132,7 +132,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"
@@ -162,6 +162,12 @@ while true; do
longname="wp-$shortname"
shift 2
;;
--domain)
shift 2
;;
--subdomain)
shift 2
;;
-c)
[[ "$action" == "unset" ]] || usage
action="_create"
@@ -187,7 +193,7 @@ while true; do
break
;;
*)
echo "Internal error!"
echoerr "Internal error: unrecognized option: <$1>"
exit 1
;;
esac