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 }