[Update] Do only replace port 9000 if host is phpfpm

master
André 2018-04-30 16:34:52 +02:00
parent f0eca3fe7b
commit 42655e2575
1 changed files with 2 additions and 2 deletions

View File

@ -220,9 +220,9 @@ sed -i 's#COMPOSEPROJECT_NAME#COMPOSE_PROJECT_NAME#g' mailcow.conf
sed -i '/COMPOSE_PROJECT_NAME=/s/-//g' mailcow.conf sed -i '/COMPOSE_PROJECT_NAME=/s/-//g' mailcow.conf
echo -e "Fixing PHP-FPM worker ports for Nginx sites..." echo -e "Fixing PHP-FPM worker ports for Nginx sites..."
sed -i 's#9000#9002#g' data/conf/nginx/*.conf sed -i 's#phpfpm:9000#phpfpm:9002#g' data/conf/nginx/*.conf
if ls data/conf/nginx/*.custom 1> /dev/null 2>&1; then if ls data/conf/nginx/*.custom 1> /dev/null 2>&1; then
sed -i 's#9000#9002#g' data/conf/nginx/*.custom sed -i 's#phpfpm:9000#phpfpm:9002#g' data/conf/nginx/*.custom
fi fi
if [[ -f "data/web/nextcloud/occ" ]]; then if [[ -f "data/web/nextcloud/occ" ]]; then