Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 06164041..e417661c 100755
--- a/update.sh
+++ b/update.sh
@@ -257,6 +257,14 @@ EOF
service php${PHPVER}-fpm start
service mysql start
" &>/dev/null &
+
+ # PHP7.2 end
+
+ # Redis eviction policy
+ grep -q "^maxmemory-policy allkeys-lru" /etc/redis/redis.conf || {
+ sed -i 's|# maxmemory-policy .*|maxmemory-policy allkeys-lru|' /etc/redis/redis.conf
+ service redis-server restart
+ }
}
} # end - only live updates