Browse Source

[Update] Add COMPOSE_PROJECT_NAME if missing
[Update] Fix NC Redis timeout (if NC is installed via helper script)

André 7 years ago
parent
commit
c0aa3ddf7b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      update.sh

+ 6 - 0
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