Skip to content

Commit 9f6e025

Browse files
committed
Change also Port in ports.conf.
1 parent 9eb44a0 commit 9f6e025

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/v-change-sys-port

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ else
7474
sed -i "/listen/c\ listen $PORT ssl;" $HESTIA/nginx/conf/nginx.conf
7575
sed -i "/password_hestia_port/c\$rcmail_config['password_hestia_port'] = '$PORT';" /etc/roundcube/plugins/password/config.inc.php
7676
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
77+
sed -i s/$ORIGINAL_PORT/$PORT/g $HESTIA/data/firewall/ports.conf
7778

7879
# Restart services
7980
$HESTIA/bin/v-restart-service iptables

0 commit comments

Comments
 (0)