Browse Source

fix: [redis] was generating new password each time, and recreating service as a consequence.

framadate
Valentin Lab 6 years ago
parent
commit
56ecc05d94
  1. 4
      redis/hooks/init

4
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
}

Loading…
Cancel
Save