accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [1/2] git commit: ACCUMULO-2790 generate_monitor_certificate.sh fails on OSX
Date Wed, 14 May 2014 03:21:44 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.5.2-SNAPSHOT 7e9cb850a -> 72fd01ff2


ACCUMULO-2790 generate_monitor_certificate.sh fails on OSX


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/312856ae
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/312856ae
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/312856ae

Branch: refs/heads/1.5.2-SNAPSHOT
Commit: 312856ae6a2a2324f841796a7ddeacbe9c7bca92
Parents: 7e9cb85
Author: Drew Farris <drew@apache.org>
Authored: Tue May 13 22:51:35 2014 -0400
Committer: Drew Farris <drew@apache.org>
Committed: Tue May 13 22:51:35 2014 -0400

----------------------------------------------------------------------
 bin/generate_monitor_certificate.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/312856ae/bin/generate_monitor_certificate.sh
----------------------------------------------------------------------
diff --git a/bin/generate_monitor_certificate.sh b/bin/generate_monitor_certificate.sh
index d00c811..fe98bb3 100755
--- a/bin/generate_monitor_certificate.sh
+++ b/bin/generate_monitor_certificate.sh
@@ -28,8 +28,8 @@ bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
 . "$bin"/config.sh
 
 ALIAS="default"
-KEYPASS=$(tr -dc '#-~' < /dev/urandom | tr -d '<>&' | head -c 20)
-STOREPASS=$(tr -dc '#-~' < /dev/urandom | tr -d '<>&' | head -c 20)
+KEYPASS=$(LC_CTYPE=C tr -dc '#-~' < /dev/urandom | tr -d '<>&' | head -c 20)
+STOREPASS=$(LC_CTYPE=C tr -dc '#-~' < /dev/urandom | tr -d '<>&' | head -c 20)
 KEYSTOREPATH="$ACCUMULO_HOME/conf/keystore.jks"
 TRUSTSTOREPATH="$ACCUMULO_HOME/conf/cacerts.jks"
 CERTPATH="$ACCUMULO_HOME/conf/server.cer"


Mime
View raw message