Skip to content

Commit 67c97b2

Browse files
committed
Fix v-change-sys-port
It didn't update the port on update for Rainloop password changing
1 parent 378eed4 commit 67c97b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-change-sys-port

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ else
7171
if [ -d /etc/roundcube/ ]; then
7272
sed -i "/password_hestia_port/c\$rcmail_config['password_hestia_port'] = '$PORT';" /etc/roundcube/plugins/password/config.inc.php
7373
fi
74+
if [ -d /etc/rainloop/ ]; then
75+
sed -i "/hestia_port/c\hestia_port = $PORT" /etc/rainloop/data/_data_/_default_/configs/plugin-hestia-change-password.ini
76+
fi
7477
sed -i "/COMMENT='HESTIA'/c\RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='$PORT' IP='0.0.0.0/0' COMMENT='HESTIA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'" $HESTIA/data/firewall/rules.conf
7578

7679
# Restart services

0 commit comments

Comments
 (0)