Merge pull request #5 from dokku/lg-password-with-openssl-rand

Use openssl rand to generate password
This commit is contained in:
Jose Diaz-Gonzalez
2015-09-09 18:43:00 -04:00

View File

@@ -26,7 +26,7 @@ case "$1" in
fi
mkdir -p "$SERVICE_ROOT" || dokku_log_fail "Unable to create service directory"
password=$(date +%s | sha256sum | base64 | head -c 16)
password=$(openssl rand -hex 16)
echo "$password" > "$SERVICE_ROOT/PASSWORD"
touch "$LINKS_FILE"