Browse Source

Update order

Jaap Marcus 3 years ago
parent
commit
22d17a9259
1 changed files with 8 additions and 8 deletions
  1. 8 8
      bin/v-add-letsencrypt-host

+ 8 - 8
bin/v-add-letsencrypt-host

@@ -11,14 +11,6 @@
 #                Variables & Functions                     #
 #----------------------------------------------------------#
 
-# Argument definition
-domain=$(hostname -f);
-if [ -z $domain ]; then 
-    domain=$HOSTNAME;
-fi
-user="$($HESTIA/bin/v-search-domain-owner "$domain" web)"
-[[ -z "$user" ]] && user="admin"
-
 # Includes
 # shellcheck source=/etc/hestiacp/hestia.conf
 source /etc/hestiacp/hestia.conf
@@ -32,6 +24,14 @@ source_conf "$HESTIA/conf/hestia.conf"
 # Perform verification if read-only mode is enabled
 check_hestia_demo_mode
 
+# Argument definition
+domain=$(hostname -f);
+if [ -z $domain ]; then 
+    domain=$HOSTNAME;
+fi
+user="$($HESTIA/bin/v-search-domain-owner "$domain" web)"
+[[ -z "$user" ]] && user="admin"
+
 #----------------------------------------------------------#
 #                    Verifications                         #
 #----------------------------------------------------------#