Compare commits

...

2 commits

Author SHA1 Message Date
Micke Nordin cdb1157172 Merge branch 'main' into stable 2024-06-28 10:06:49 +02:00
Micke Nordin 39b571f3d1 Support redict 2024-06-28 10:05:56 +02:00

View file

@ -83,7 +83,11 @@ alias la='ls -A'
alias l='ls -CF' alias l='ls -CF'
if [[ $(hostname) =~ redis ]]; then if [[ $(hostname) =~ redis ]]; then
if [ -f /opt/redis/node-0/server.conf ]; then
alias redis-cli="redis-cli -a $(grep requirepass /opt/redis/node-0/server.conf | awk '{print $2}' | sed 's/"//g') --no-auth-warning" alias redis-cli="redis-cli -a $(grep requirepass /opt/redis/node-0/server.conf | awk '{print $2}' | sed 's/"//g') --no-auth-warning"
else
alias redis-cli="redis-cli -a $(grep requirepass /opt/redict/node-0/server.conf | awk '{print $2}' | sed 's/"//g') --no-auth-warning"
fi
fi fi
# Alias definitions. # Alias definitions.