Update auto_addport.sh

This commit is contained in:
qiaofeng1227 2022-12-08 13:48:36 +08:00 committed by GitHub
parent f8fa8322c3
commit 9083317b04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ do
app_port=`expr $app_port + 1`
else
echo $app_port >> /tmp/port.txt
sed -i "s/APP_HTTP_PORT=*/APP_HTTP_PORT=$app_port/g" /data/apps/$1/.env
sed -i "s/APP_HTTP_PORT=.*/APP_HTTP_PORT=$app_port/g" /data/apps/$1/.env
break
fi
done