mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Update v-change-vesta-port
This commit is contained in:
parent
9eedd3e1b2
commit
40739f3105
1 changed files with 8 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
# Variable & Verifications #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
whoami=$(whoami)
|
||||
|
@ -19,6 +19,9 @@ if [ -z "$VESTA" ]; then
|
|||
VESTA="/usr/local/vesta"
|
||||
fi
|
||||
|
||||
# Includes
|
||||
source $VESTA/func/main.sh
|
||||
|
||||
# Argument definition
|
||||
port=$1
|
||||
|
||||
|
@ -33,6 +36,10 @@ else
|
|||
oldport=`cat $VESTA/conf/port.conf`
|
||||
fi
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue