Created
October 14, 2016 09:38
-
-
Save pprishchepa/f27c4cd8d1b59041eac8c5b2bf9046db to your computer and use it in GitHub Desktop.
Bash, Generate password, Environment Variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/wikimedia/mediawiki-containers/blob/master/mediawiki-containers | |
if [ -z "$MEDIAWIKI_ADMIN_PASS" ];then | |
MEDIAWIKI_ADMIN_PASS=$(</dev/urandom tr -dc A-Za-z0-9 | head -c8) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment