Correct backslash replacement in pwgen generated password.

This commit is contained in:
Andrew McMillan 2007-04-17 01:17:55 +12:00
parent 2a40c39d93
commit 73e7f73f2a

View File

@ -33,7 +33,7 @@ if [ "${ADMINPW}" = "" ] ; then
#
# Generate a random administrative password. If pwgen is available we'll use that,
# otherwise try and hack something up using a few standard utilities
ADMINPW="`pwgen -Bcny 2>/dev/null | tr \"\\\'\" '^='`"
ADMINPW="`pwgen -Bcny 2>/dev/null | tr \"\\\\\'\" '^='`"
fi
if [ "$ADMINPW" = "" ] ; then