We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce5a48 commit 4eac6fbCopy full SHA for 4eac6fb
bin/v-add-remote-dns-host
@@ -25,7 +25,7 @@ hash=$user
25
HASH=$user
26
password=$4; HIDE=4
27
PASSWORD=$password
28
-type=${5-api}
+type=${5}
29
TYPE="$type"
30
dns_user=${6-dns-cluster}
31
DNS_USER=$dns_user
@@ -44,6 +44,11 @@ source_conf "$HESTIA/conf/hestia.conf"
44
# Verifications #
45
#----------------------------------------------------------#
46
47
+if [ -z "$type" ]; then
48
+ type='api'
49
+ TYPE="$type"
50
+fi
51
+
52
args_usage='HOST PORT USER [PASSWORD] [TYPE] [DNS_USER]'
53
check_args '3' "$#" "$args_usage"
54
is_format_valid 'host' 'port' 'dns_user'
0 commit comments