Browse Source

Fix v-change-sys-port

It didn't update the port on update for Rainloop password changing
Jaap Marcus 4 years ago
parent
commit
67c97b229c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bin/v-change-sys-port

+ 3 - 0
bin/v-change-sys-port

@@ -71,6 +71,9 @@ else
     if [ -d /etc/roundcube/ ]; then
         sed -i "/password_hestia_port/c\$rcmail_config['password_hestia_port'] = '$PORT';" /etc/roundcube/plugins/password/config.inc.php
     fi
+    if [ -d /etc/rainloop/ ]; then
+        sed -i "/hestia_port/c\hestia_port = $PORT" /etc/rainloop/data/_data_/_default_/configs/plugin-hestia-change-password.ini
+    fi
     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
     
     # Restart services