File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1414
1515# Argument definition
1616domain=$1
17- helo=" ${2-yes} "
1817
1918# Includes
2019# shellcheck source=/usr/local/hestia/func/main.sh
@@ -27,7 +26,7 @@ source $HESTIA/conf/hestia.conf
2726# Verifications #
2827# ----------------------------------------------------------#
2928
30- check_args ' 1' " $# " ' HOSTNAME [HELO] '
29+ check_args ' 1' " $# " ' HOSTNAME'
3130is_format_valid ' domain'
3231
3332# Perform verification if read-only mode is enabled
5756 if [ -d /etc/roundcube/ ]; then
5857 sed -i " /password_hestia_host/c\$ rcmail_config['password_hestia_host'] = '$domain ';" /etc/roundcube/plugins/password/config.inc.php
5958 fi
59+ if [ -d /etc/rainloop/ ]; then
60+ sed -i " /hestia_host/c\hestia_host = \" $domain \" " /etc/rainloop/data/_data_/_default_/configs/plugin-hestia-change-password.ini
61+ fi
6062fi
6163
6264# Update ip helo for exim
63- if [[ ! -z " $MAIL_SYSTEM " && " $helo " == " yes " ] ]; then
65+ if [ ! -z " $MAIL_SYSTEM " ]; then
6466 pub_ip=$( curl --ipv4 -s https://ip.hestiacp.com/)
6567 $BIN /v-change-sys-ip-helo $pub_ip $domain
6668fi
7072# ----------------------------------------------------------#
7173
7274# Logging
75+ $BIN /v-log-action " system" " Warning" " System" " System hostname changed (Host: $domain )."
7376log_event " $OK " " $ARGUMENTS "
7477
7578exit
You can’t perform that action at this time.
0 commit comments