How to generate .env with random password
example.sh
echo "MARIADB_ROOT_PASSWORD=$(pwgen 30 1)" >> .env
Example output:
example.sh
MARIADB_ROOT_PASSWORD=ieGhie9eighah9ohghaeshah9eegh9
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow