From 20aefab3ae01770b929388207895d3d41217b05a Mon Sep 17 00:00:00 2001 From: Chia-liang Kao Date: Wed, 28 Dec 2016 17:28:07 +0800 Subject: [PATCH] Portable password generation on Mac the tr command got `tr: Illegal byte sequence` --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 8304654..95b977a 100755 --- a/scripts/install +++ b/scripts/install @@ -1,6 +1,6 @@ #!/bin/bash -eux -PG_PASSWORD=`tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs` +PG_PASSWORD=`cat /dev/random | base64 | head -c 20 | xargs` echo "DISCOURSE_SMTP_ADDRESS=${MAIL_HOST}" > env echo "DISCOURSE_SMTP_PORT=587" >> env -- GitLab