mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -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)
|
whoami=$(whoami)
|
||||||
|
@ -19,6 +19,9 @@ if [ -z "$VESTA" ]; then
|
||||||
VESTA="/usr/local/vesta"
|
VESTA="/usr/local/vesta"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Includes
|
||||||
|
source $VESTA/func/main.sh
|
||||||
|
|
||||||
# Argument definition
|
# Argument definition
|
||||||
port=$1
|
port=$1
|
||||||
|
|
||||||
|
@ -33,6 +36,10 @@ else
|
||||||
oldport=`cat $VESTA/conf/port.conf`
|
oldport=`cat $VESTA/conf/port.conf`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
# Action #
|
||||||
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
sed -i "s|$oldport;|$port;|g" $VESTA/nginx/conf/nginx.conf
|
sed -i "s|$oldport;|$port;|g" $VESTA/nginx/conf/nginx.conf
|
||||||
if [ -f "/etc/roundcube/plugins/password/config.inc.php" ]; then
|
if [ -f "/etc/roundcube/plugins/password/config.inc.php" ]; then
|
||||||
sed -i "s|'$oldport'|'$port'|g" /etc/roundcube/plugins/password/config.inc.php
|
sed -i "s|'$oldport'|'$port'|g" /etc/roundcube/plugins/password/config.inc.php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue