Update v-change-vesta-port

This commit is contained in:
dpeca 2019-08-24 15:52:39 +02:00 committed by GitHub
commit 2125c7bb2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,8 +11,12 @@
# Argument definition # Argument definition
port=$1 port=$1
if [ -z "$VESTA" ]; then
VESTA="/usr/local/vesta"
fi
# Get current vesta port by reading nginx.conf # Get current vesta port by reading nginx.conf
oldport=$(grep 'listen' /usr/local/vesta/nginx/conf/nginx.conf | awk '{print $2}' | sed "s|;||") oldport=$(grep 'listen' $VESTA/nginx/conf/nginx.conf | awk '{print $2}' | sed "s|;||")
if [ -z "$oldport" ]; then if [ -z "$oldport" ]; then
oldport=8083 oldport=8083
fi fi