Skip to content

Commit f9749a9

Browse files
committed
Don't assume primary hostname is hosted under the admin account
Fixes hestiacp#1019
1 parent 8323fb7 commit f9749a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-add-letsencrypt-host

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
#----------------------------------------------------------#
1212

1313
# Argument definition
14-
user="admin"
1514
domain=$HOSTNAME
15+
user="$($HESTIA/bin/v-search-domain-owner "$domain" web)"
16+
[[ -z "$user" ]] && user="admin"
1617

1718
# Includes
1819
source $HESTIA/func/main.sh

0 commit comments

Comments
 (0)