From 1d6c14a96984511a9e4bf607f04a92298fca9512 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 2 Apr 2014 04:10:21 +0200 Subject: using collectd and stuff --- filehooker/root-image/krebs/bin/add-reaktor-secret.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'filehooker/root-image/krebs/bin/add-reaktor-secret.sh') diff --git a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh b/filehooker/root-image/krebs/bin/add-reaktor-secret.sh index 8a3a5c6b..92681449 100755 --- a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh +++ b/filehooker/root-image/krebs/bin/add-reaktor-secret.sh @@ -5,13 +5,20 @@ red='\e[0;31m' nc='\e[0m' black='\e[0;30m' -printf "${green}Add a Reaktor Secret${nc}\n" +printf "${green}Add a Reaktor Secret ${nc}\n" +printf "${red}(no spaces in input plox)${nc}\n" -printf "provide Nick Name:\n" nick=${1:-} -test -z "${nick:-}" && read nick -printf "provide Secret:$black\n" +while test -z "${nick:-}" ;do + printf "provide Nick Name:\n" + read nick +done + secret=${2:-} -test -z "${secret:-}" && read secret +while test -z "${secret:-}" ;do + printf "provide Secret:$black\n" + read secret +done + echo "$nick $secret" >> /krebs/painload/Reaktor/admin.lst printf "${green}done${nc}" -- cgit v1.2.3