diff --git a/redis_ b/redis_ index 80ed6ac..3f42816 100755 --- a/redis_ +++ b/redis_ @@ -34,6 +34,8 @@ fi # add the ability to set a password in a respective config file if [ -z "$password" ]; then passwd='' # no password was configured +elif [ ! -z "$user" ]; then + passwd="--user $user --pass $password" else passwd="-a $password" fi