From 72029bb578052814d1eb32762a815485ac3d60c6 Mon Sep 17 00:00:00 2001 From: dpeca Date: Sat, 24 Aug 2019 02:20:02 +0200 Subject: [PATCH] Update v-change-vesta-port --- bin/v-change-vesta-port | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/v-change-vesta-port b/bin/v-change-vesta-port index 16e47ca3..40d4dff7 100755 --- a/bin/v-change-vesta-port +++ b/bin/v-change-vesta-port @@ -33,9 +33,11 @@ else oldport=`cat $VESTA/conf/port.conf` fi -sed -i "s|$oldport;|$port;|g" /usr/local/vesta/nginx/conf/nginx.conf -sed -i "s|'$oldport'|'$port'|g" /etc/roundcube/plugins/password/config.inc.php -sed -i "s|'$oldport'|'$port'|g" /usr/local/vesta/data/firewall/rules.conf +sed -i "s|$oldport;|$port;|g" $VESTA/nginx/conf/nginx.conf +if [ -f "/etc/roundcube/plugins/password/config.inc.php" ]; then + sed -i "s|'$oldport'|'$port'|g" /etc/roundcube/plugins/password/config.inc.php +fi +sed -i "s|'$oldport'|'$port'|g" $VESTA/data/firewall/rules.conf $VESTA/bin/v-update-firewall systemctl restart fail2ban.service systemctl restart vesta