From c908199996b2ad0cf87ba18eb099dc6071f1f1b1 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 2 Apr 2014 13:22:50 +0200 Subject: make customize_root_image less verbose, highlight root password --- elchos/root-image/root/customize_root_image.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'elchos') diff --git a/elchos/root-image/root/customize_root_image.sh b/elchos/root-image/root/customize_root_image.sh index ca6a21dd..6c5640c3 100755 --- a/elchos/root-image/root/customize_root_image.sh +++ b/elchos/root-image/root/customize_root_image.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e -u -f -x +set -e -u -f reaktor_user=reaktor ncdc_user=hooker rootpw=$(dd if=/dev/urandom bs=1 count=100 2>/dev/null |md5sum | awk '{print $1}' | dd bs=1 count=9 2>/dev/null) @@ -58,7 +58,8 @@ cp /krebs/painload/Reaktor/etc/systemd/system/Reaktor@.service \ # add bonus features for elch cp -a /krebs/etc/Reaktor /krebs/painload # emergency root passwd -echo "the Root PW is $rootpw" + +printf "!!!!!!\nthe Root PW is '%s'\n!!!!!!\n" "$rootpw" (printf "%s\n%s\n" "$rootpw" "$rootpw" ) | passwd cd /krebs/painload/Reaktor/ touch auth.lst admin.lst -- cgit v1.2.3