[Update] Add COMPOSE_PROJECT_NAME if missing

[Update] Fix NC Redis timeout (if NC is installed via helper script)
master
André 2018-04-27 21:00:06 +02:00
parent 3e08416c6d
commit c0aa3ddf7b
1 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,7 @@ CONFIG_ARRAY=(
"SNAT_TO_SOURCE" "SNAT_TO_SOURCE"
"SYSCTL_IPV6_DISABLED" "SYSCTL_IPV6_DISABLED"
"SQL_PORT" "SQL_PORT"
"COMPOSE_PROJECT_NAME"
) )
sed -i '$a\' mailcow.conf sed -i '$a\' mailcow.conf
@ -215,6 +216,11 @@ echo -e "Fixing PHP-FPM worker ports for Nginx sites..."
sed -i 's#9000#9002#g' data/conf/nginx/*.conf sed -i 's#9000#9002#g' data/conf/nginx/*.conf
sed -i 's#9000#9002#g' data/conf/nginx/*.custom sed -i 's#9000#9002#g' data/conf/nginx/*.custom
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;
fi
echo -e "\e[32mStarting mailcow...\e[0m" echo -e "\e[32mStarting mailcow...\e[0m"
sleep 2 sleep 2
docker-compose up -d --remove-orphans docker-compose up -d --remove-orphans