diff options
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |