From bb94214932fef5bdf7a7d161bc900186cd44cd4a Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sun, 16 Oct 2016 14:05:45 +0200 Subject: [PATCH] nextcloud: use redis for file locking cache --- nextcloud/daily-armhf/run.sh | 3 ++- nextcloud/daily/run.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nextcloud/daily-armhf/run.sh b/nextcloud/daily-armhf/run.sh index 16b4785..2c2144f 100644 --- a/nextcloud/daily-armhf/run.sh +++ b/nextcloud/daily-armhf/run.sh @@ -3,13 +3,14 @@ sed -i -e "s//$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/php7/php-fpm.conf \ -e "s//$APC_SHM_SIZE/g" /etc/php7/conf.d/apcu.ini \ -e "s//$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \ + -e "s//$REDIS_MAX_MEMORY/g" /etc/redis.conf \ -e "s//$CRON_PERIOD/g" /etc/s6.d/cron/run # Put the configuration and apps into volumes ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null ln -sf /apps2 /nextcloud &>/dev/null -chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /tmp /etc/s6.d +chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /var/lib/redis /tmp /etc/s6.d if [ ! -f /config/config.php ]; then # New installation, run the setup diff --git a/nextcloud/daily/run.sh b/nextcloud/daily/run.sh index 16b4785..2c2144f 100644 --- a/nextcloud/daily/run.sh +++ b/nextcloud/daily/run.sh @@ -3,13 +3,14 @@ sed -i -e "s//$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/php7/php-fpm.conf \ -e "s//$APC_SHM_SIZE/g" /etc/php7/conf.d/apcu.ini \ -e "s//$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \ + -e "s//$REDIS_MAX_MEMORY/g" /etc/redis.conf \ -e "s//$CRON_PERIOD/g" /etc/s6.d/cron/run # Put the configuration and apps into volumes ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null ln -sf /apps2 /nextcloud &>/dev/null -chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /tmp /etc/s6.d +chown -R $UID:$GID /nextcloud /data /config /apps2 /etc/nginx /etc/php7 /var/log /var/lib/nginx /var/lib/redis /tmp /etc/s6.d if [ ! -f /config/config.php ]; then # New installation, run the setup