File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1414
1515# Argument definition
1616domain=$1
17- helo=" ${2-yes} "
17+ helo=${2-yes}
1818
1919# Includes
2020# shellcheck source=/usr/local/hestia/func/main.sh
5757 if [ -d /etc/roundcube/ ]; then
5858 sed -i " /password_hestia_host/c\$ rcmail_config['password_hestia_host'] = '$domain ';" /etc/roundcube/plugins/password/config.inc.php
5959 fi
60+ if [ -d /etc/rainloop/ ]; then
61+ sed -i " /hestia_host/c\hestia_host = \" $domain \" " /etc/rainloop/data/_data_/_default_/configs/plugin-hestia-change-password.ini
62+ fi
6063fi
6164
6265# Update ip helo for exim
63- if [[ ! -z " $MAIL_SYSTEM " && " $helo " == " yes" ]]; then
66+ if [[] ! -z " $MAIL_SYSTEM " && " $helo " == " yes" ]]; then
6467 pub_ip=$( curl --ipv4 -s https://ip.hestiacp.com/)
6568 $BIN /v-change-sys-ip-helo $pub_ip $domain
6669fi
7073# ----------------------------------------------------------#
7174
7275# Logging
76+ $BIN /v-log-action " system" " Warning" " System" " System hostname changed (Host: $domain )."
7377log_event " $OK " " $ARGUMENTS "
7478
7579exit
You can’t perform that action at this time.
0 commit comments