[Update] Fix sed for missing *custom files

master
André 2018-04-27 21:23:00 +02:00
parent c0aa3ddf7b
commit d897ae71f6
1 changed files with 4 additions and 2 deletions

View File

@ -214,11 +214,13 @@ sed -i '/COMPOSE_PROJECT_NAME=/s/-//g' mailcow.conf
echo -e "Fixing PHP-FPM worker ports for Nginx sites..."
sed -i 's#9000#9002#g' data/conf/nginx/*.conf
if ls data/conf/nginx/*.custom 1> /dev/null 2>&1; then
sed -i 's#9000#9002#g' data/conf/nginx/*.custom
fi
if [[ -f "data/web/nextcloud/occ" ]]; then
echo "Setting Nextcloud Redis timeout to 0.0..."
docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "/web/nextcloud/occ config:system:set redis timeout --value=0.0 --type=integer;
docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "/web/nextcloud/occ config:system:set redis timeout --value=0.0 --type=integer
fi
echo -e "\e[32mStarting mailcow...\e[0m"