diff options
-rw-r--r-- | changelog.md | 6 | ||||
-rw-r--r-- | etc/nextcloudpi-config.d/nc-nextcloud.sh | 6 | ||||
-rwxr-xr-x | update.sh | 8 |
3 files changed, 12 insertions, 8 deletions
diff --git a/changelog.md b/changelog.md index 26af6ead..bc50ca51 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,9 @@ -[v0.34.5](https://github.com/nextcloud/nextcloudpi/commit/e603de3) (2017-11-10) update: wait running apt processes (fix) +[v0.34.6](https://github.com/nextcloud/nextcloudpi/commit/fc4ffc2) (2017-11-11) redis: fix socket permissions -[v0.34.4 ](https://github.com/nextcloud/nextcloudpi/commit/362211f) (2017-11-09) redis: fixes with ramlogs and modsecurity +[v0.34.5](https://github.com/nextcloud/nextcloudpi/commit/9e48e92) (2017-11-10) update: wait running apt processes (fix) + +[v0.34.4 ](https://github.com/nextcloud/nextcloudpi/commit/b6538b9) (2017-11-09) redis: fixes with ramlogs and modsecurity [v0.34.3 ](https://github.com/nextcloud/nextcloudpi/commit/cc82c7b) (2017-11-09) redis: change overcommit memory on update diff --git a/etc/nextcloudpi-config.d/nc-nextcloud.sh b/etc/nextcloudpi-config.d/nc-nextcloud.sh index 37cf7919..ac590159 100644 --- a/etc/nextcloudpi-config.d/nc-nextcloud.sh +++ b/etc/nextcloudpi-config.d/nc-nextcloud.sh @@ -48,9 +48,9 @@ install() $APTINSTALL redis-server php7.0-redis local REDIS_CONF=/etc/redis/redis.conf - sed -i "s|# unixsocket.*|unixsocket /var/run/redis/redis.sock|" $REDIS_CONF - sed -i "s|# unixsocketperm.*|unixsocketperm 777|" $REDIS_CONF - sed -i "s|port.*|port 0|" $REDIS_CONF + sed -i "s|# unixsocket .*|unixsocket /var/run/redis/redis.sock|" $REDIS_CONF + sed -i "s|# unixsocketperm .*|unixsocketperm 770|" $REDIS_CONF + sed -i "s|port.*|port 0|" $REDIS_CONF echo "maxmemory ${REDIS_MEM}" >> $REDIS_CONF echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf @@ -257,9 +257,9 @@ EOF EOF REDIS_MEM=3gb - sed -i "s|# unixsocket.*|unixsocket /var/run/redis/redis.sock|" $REDIS_CONF - sed -i "s|# unixsocketperm.*|unixsocketperm 777|" $REDIS_CONF - sed -i "s|port.*|port 0|" $REDIS_CONF + sed -i "s|# unixsocket.* |unixsocket /var/run/redis/redis.sock|" $REDIS_CONF + sed -i "s|# unixsocketperm.* |unixsocketperm 770|" $REDIS_CONF + sed -i "s|port.*|port 0|" $REDIS_CONF echo "maxmemory ${REDIS_MEM}" >> $REDIS_CONF echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf @@ -279,6 +279,8 @@ EOF } sed -i 's|^logfile.*|logfile /var/log/redis/redis-server.log|' $REDIS_CONF + grep -q unixsocketperm $REDIS_CONF || echo unixsocketperm 770 >> $REDIS_CONF + # fix unattended NUSER=$( grep USER_ /usr/local/etc/nextcloudpi-config.d/nc-notify-updates.sh | head -1 | cut -f2 -d= ) cat > /usr/local/bin/ncp-notify-unattended-upgrade <<EOF |