File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ check_args '2' "$#" 'USER DOMAIN [ALIASES] [MAIL]'
6767is_format_valid ' user' ' domain' ' aliases'
6868is_object_valid ' user' ' USER' " $user "
6969is_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 "
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ for ip in $ips; do
110110done
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/)
114114if [ ! -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)
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments