From c0aa3ddf7b81c11b080ddcd53a2f6df73ba09816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Fri, 27 Apr 2018 21:00:06 +0200 Subject: [PATCH] [Update] Add COMPOSE_PROJECT_NAME if missing [Update] Fix NC Redis timeout (if NC is installed via helper script) --- update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/update.sh b/update.sh index 557f11a4..584f6f06 100755 --- a/update.sh +++ b/update.sh @@ -49,6 +49,7 @@ CONFIG_ARRAY=( "SNAT_TO_SOURCE" "SYSCTL_IPV6_DISABLED" "SQL_PORT" + "COMPOSE_PROJECT_NAME" ) 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/*.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" sleep 2 docker-compose up -d --remove-orphans