diff --git a/bin/v-change-vesta-port b/bin/v-change-vesta-port index 40d4dff7..be955013 100755 --- a/bin/v-change-vesta-port +++ b/bin/v-change-vesta-port @@ -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