From 56ecc05d9476bf84256c1e18b1790c63360a80a9 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sat, 23 Mar 2019 17:39:37 +0100 Subject: [PATCH] fix: [redis] was generating new password each time, and recreating service as a consequence. --- redis/hooks/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis/hooks/init b/redis/hooks/init index b206c1b..c2db0ff 100755 --- a/redis/hooks/init +++ b/redis/hooks/init @@ -20,8 +20,8 @@ PASSWORD=$(options-get password 2>/dev/null) || { if [ -e "$CONFIG" ]; then PASSWORD=$(grep ^requirepass "$CONFIG" | sed -r 's/^requirepass\s+(.+)$/\1/g') fi - if [ -z "$ADMIN_PASSWORD" ]; then - info "Generating odoo admin password" + if [ -z "$PASSWORD" ]; then + info "Generating redis admin password" PASSWORD=$(gen_password 64) fi }