From 1dccbb9ccc78aae14436b37c03924551e0223e7e Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 11 Jan 2010 10:14:50 +1300 Subject: [PATCH] Try and reduce the odds of an extra quote in the password. --- dba/create-database.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dba/create-database.sh b/dba/create-database.sh index f632d351..0f2c5738 100755 --- a/dba/create-database.sh +++ b/dba/create-database.sh @@ -149,7 +149,7 @@ if [ "$ADMINPW" = "" ] ; then # OK. They didn't supply one, and pwgen didn't work, so we hack something # together from /dev/random ... export LC_ALL=C - ADMINPW="`dd if=/dev/urandom bs=512 count=1 2>/dev/null | tr -c -d "a-km-zA-HJ-NP-Y0-9" | cut -c2-9`" + ADMINPW="`dd if=/dev/urandom bs=512 count=1 2>/dev/null | tr -c -d 'a-km-zA-HJ-NP-Y0-9' | cut -c2-9`" fi if [ "$ADMINPW" = "" ] ; then