From b6d2608dd2f38168f004471a74c8f3add2008964 Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Fri, 27 Jul 2012 14:37:17 +0200 Subject: [PATCH] Don't use uuidgen in install.sh uuidgen is not present in Ubuntu. This simply reads 16 bytes from /dev/random and stores their hex representation. Change-Id: If1152242b024218f20bd4c787e03836f0d5f49cf Signed-off-by: Tomas Sedovic --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 946198b2..5af03794 100755 --- a/install.sh +++ b/install.sh @@ -21,7 +21,7 @@ do echo "not copying over $CONF_DIR/$f" diff -u $CONF_DIR/$f $f elif [ $f = 'heat-engine.conf' ]; then - cat $f | sed s/%ENCRYPTION_KEY%/`/bin/uuidgen`/ > $CONF_DIR/$f + cat $f | sed s/%ENCRYPTION_KEY%/`hexdump -n 16 -v -e '/1 "%02x"' /dev/random`/ > $CONF_DIR/$f else cp $f $CONF_DIR fi -- 2.45.2