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:
authornachoparker <nacho@ownyourbits.com>2017-11-11 12:50:04 +0300
committernachoparker <nacho@ownyourbits.com>2017-11-11 12:50:37 +0300
commita71ec05e011cc163b84596db497924acc2bdb90e (patch)
treea1d40cb12cb52cb52de292e2e9653f4c4dae129f
parent10488be24bdfb3940c02c53bfbe26334daead928 (diff)
redis: fix socket permissionsv0.34.6
-rw-r--r--changelog.md6
-rw-r--r--etc/nextcloudpi-config.d/nc-nextcloud.sh6
-rwxr-xr-xupdate.sh8
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
diff --git a/update.sh b/update.sh
index df732576..412bd62e 100755
--- a/update.sh
+++ b/update.sh
@@ -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