Need to set locale to C for tr on mac.

This commit is contained in:
Andrew McMillan 2008-10-10 10:32:52 +13:00
parent 1640c70b44
commit 506d47fc6d

View File

@ -148,6 +148,7 @@ fi
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`"
fi