diff --git a/generate_config.sh b/generate_config.sh index 393d2fced..de15eac17 100755 --- a/generate_config.sh +++ b/generate_config.sh @@ -186,13 +186,13 @@ DBNAME=mailcow DBUSER=mailcow # Please use long, random alphanumeric strings (A-Za-z0-9) -DBPASS=$(LC_ALL=C /dev/null | head -c 28) -DBROOT=$(LC_ALL=C /dev/null | head -c 28) +DBPASS=${MAILCOW_DBPASS:-$(LC_ALL=C /dev/null | head -c 28)} +DBROOT=${MAILCOW_DBROOT:-$(LC_ALL=C /dev/null | head -c 28)} # ------------------------------ # REDIS configuration # ------------------------------ -REDISPASS=$(LC_ALL=C /dev/null | head -c 28) +REDISPASS=${MAILCOW_REDISPASS:-$(LC_ALL=C /dev/null | head -c 28)} # ------------------------------ # HTTP/S Bindings