We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb44a0 commit 9f6e025Copy full SHA for 9f6e025
bin/v-change-sys-port
@@ -74,6 +74,7 @@ else
74
sed -i "/listen/c\ listen $PORT ssl;" $HESTIA/nginx/conf/nginx.conf
75
sed -i "/password_hestia_port/c\$rcmail_config['password_hestia_port'] = '$PORT';" /etc/roundcube/plugins/password/config.inc.php
76
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
78
79
# Restart services
80
$HESTIA/bin/v-restart-service iptables
0 commit comments