Skip to content

Instantly share code, notes, and snippets.

@pprishchepa
Created October 14, 2016 09:38
Show Gist options
  • Save pprishchepa/f27c4cd8d1b59041eac8c5b2bf9046db to your computer and use it in GitHub Desktop.
Save pprishchepa/f27c4cd8d1b59041eac8c5b2bf9046db to your computer and use it in GitHub Desktop.
Bash, Generate password, Environment Variable
# 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