Skip to content

Commit 0642453

Browse files
authored
Merge pull request hestiacp#2836 from hestiacp/jaapmarcus-patch-1
Update order
2 parents 3307742 + 22d17a9 commit 0642453

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

bin/v-add-letsencrypt-host

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
# Variables & Functions #
1212
#----------------------------------------------------------#
1313

14-
# Argument definition
15-
domain=$(hostname -f);
16-
if [ -z $domain ]; then
17-
domain=$HOSTNAME;
18-
fi
19-
user="$($HESTIA/bin/v-search-domain-owner "$domain" web)"
20-
[[ -z "$user" ]] && user="admin"
21-
2214
# Includes
2315
# shellcheck source=/etc/hestiacp/hestia.conf
2416
source /etc/hestiacp/hestia.conf
@@ -32,6 +24,14 @@ source_conf "$HESTIA/conf/hestia.conf"
3224
# Perform verification if read-only mode is enabled
3325
check_hestia_demo_mode
3426

27+
# Argument definition
28+
domain=$(hostname -f);
29+
if [ -z $domain ]; then
30+
domain=$HOSTNAME;
31+
fi
32+
user="$($HESTIA/bin/v-search-domain-owner "$domain" web)"
33+
[[ -z "$user" ]] && user="admin"
34+
3535
#----------------------------------------------------------#
3636
# Verifications #
3737
#----------------------------------------------------------#

0 commit comments

Comments
 (0)