I know this may sound weird but I am not understanding why this is occurring. So here is how it goes. I want to write a bash script to changes these variables on redis.conf
which is located in /etc/redis/redis.conf
. The script is like so:
sudo sed -e "s/^daemonize no$/daemonize yes/" \
-e "s/^# unixsocket /var/run/redis-server.sock$/unixsocket /var/run/redis/redis.sock/" \
-e "s/^# unixsocketperm 700$/unixsocketperm 770/" \
-e "s/^# maxclients 10000$/maxclients 512/" \
-e "s/^databases 16$/databases 128/" /etc/redis/redis.conf | sudo tee /etc/redis/redis.conf
Once ran, I receive an error on sed finding no substitution to change. I look in the /ect/redis/redis.conf
file and everything is empty inside. No configuration whatsoever. Can someone help me understand what I am doing wrong. I would greatly appreciate it.