Skip to content

Commit 4d03a89

Browse files
committed
Revert the changes earlier made
1 parent caa9059 commit 4d03a89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/v-change-sys-hostname

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# Argument definition
1616
domain=$1
17+
helo=${2-yes}
1718

1819
# Includes
1920
# shellcheck source=/usr/local/hestia/func/main.sh
@@ -26,7 +27,7 @@ source $HESTIA/conf/hestia.conf
2627
# Verifications #
2728
#----------------------------------------------------------#
2829

29-
check_args '1' "$#" 'HOSTNAME'
30+
check_args '1' "$#" 'HOSTNAME [HELO]'
3031
is_format_valid 'domain'
3132

3233
# Perform verification if read-only mode is enabled
@@ -62,7 +63,7 @@ else
6263
fi
6364

6465
# Update ip helo for exim
65-
if [ ! -z "$MAIL_SYSTEM" ]; then
66+
if [[] ! -z "$MAIL_SYSTEM" && "$helo" == "yes" ]]; then
6667
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
6768
$BIN/v-change-sys-ip-helo $pub_ip $domain
6869
fi

0 commit comments

Comments
 (0)