summaryrefslogtreecommitdiff
path: root/doc/update/7.2-to-7.3.md
diff options
context:
space:
mode:
authorDaniel Widerin <daniel@widerin.net>2014-09-25 15:23:06 +0000
committerDaniel Widerin <daniel@widerin.net>2014-09-25 15:23:06 +0000
commitb874cb21ebf9653a0a15a43838bbb2ac5d37aaff (patch)
treeae077f071f1dd0cac4a5c34bb64e9a295025faf4 /doc/update/7.2-to-7.3.md
parent18adc4f67ddee72141ec9be5ebbe3923ec4f41e4 (diff)
downloadgitlab-ce-b874cb21ebf9653a0a15a43838bbb2ac5d37aaff.tar.gz
Use 'sed' with pre-search to enable only if present in redis config file.
Diffstat (limited to 'doc/update/7.2-to-7.3.md')
-rw-r--r--doc/update/7.2-to-7.3.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/update/7.2-to-7.3.md b/doc/update/7.2-to-7.3.md
index 5707d1930b6..a763835e165 100644
--- a/doc/update/7.2-to-7.3.md
+++ b/doc/update/7.2-to-7.3.md
@@ -72,8 +72,9 @@ sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
sed 's/^port .*/port 0/' /etc/redis/redis.conf.orig | sudo tee /etc/redis/redis.conf
# Enable Redis socket for default Debian / Ubuntu path
echo 'unixsocket /var/run/redis/redis.sock' | sudo tee -a /etc/redis/redis.conf
- # Be sure redis group can write to the socket.
- echo 'unixsocketperm 0775' | sudo tee -a /etc/redis/redis.conf
+ # Be sure redis group can write to the socket, enable only if supported (>= redis 2.4.0).
+ sed '/# unixsocketperm/ s/^# unixsocketperm.*/unixsocketperm 0775/' /etc/redis.conf | sudo tee -a /etc/redis/redis.conf
+ echo ' 0775' | sudo tee -a /etc/redis/redis.conf
# Activate the changes to redis.conf
sudo service redis-server restart
# Add git to the redis group