mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Update v-change-vesta-port
This commit is contained in:
parent
f9b68027da
commit
72029bb578
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue