Skip to content

Commit 1acf431

Browse files
authored
Merge pull request hestiacp#321 from Lupul/Bugfix-0524
Bugfix 0524
2 parents c976136 + 20df274 commit 1acf431

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ check_args '2' "$#" 'USER DOMAIN [ALIASES] [MAIL]'
6767
is_format_valid 'user' 'domain' 'aliases'
6868
is_object_valid 'user' 'USER' "$user"
6969
is_object_unsuspended 'user' 'USER' "$user"
70-
if [ -z "$mail" ]; then
70+
if [[ -z "${mail// }" ]] || [ "$mail" = 'no' ]; then
71+
mail=''
7172
is_system_enabled "$WEB_SYSTEM" 'WEB_SYSTEM'
7273
is_object_valid 'web' 'DOMAIN' "$domain"
7374
is_object_unsuspended 'web' 'DOMAIN' "$domain"

bin/v-update-sys-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ for ip in $ips; do
110110
done
111111

112112
# Updating NAT
113-
pub_ip=$(curl --ipv4 -s https://www.hestiacp.com/what-is-my-ip/)
113+
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
114114
if [ ! -e "$HESTIA/data/ips/$pub_ip" ]; then
115115
if [ -z "$(grep -R "$pub_ip" $HESTIA/data/ips/)" ]; then
116116
ip=$(ls -t $HESTIA/data/ips/ |head -n1)

install/deb/apache2/unassigned.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<VirtualHost directIP:directPORT>
2-
2+
ServerName directIP
33
DocumentRoot /var/www/html/
44
Alias /error/ /var/www/document_errors/
55

66
</VirtualHost>
77

88
<VirtualHost directIP:directSSLPORT>
9-
9+
ServerName directIP
1010
DocumentRoot /var/www/html/
1111
Alias /error/ /var/www/document_errors/
1212

0 commit comments

Comments
 (0)