summaryrefslogtreecommitdiffstats
path: root/filehooker
diff options
context:
space:
mode:
Diffstat (limited to 'filehooker')
-rwxr-xr-xfilehooker/root-image/krebs/bin/add-reaktor-secret.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh b/filehooker/root-image/krebs/bin/add-reaktor-secret.sh
index 7d3fa7f8..8a3a5c6b 100755
--- a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh
+++ b/filehooker/root-image/krebs/bin/add-reaktor-secret.sh
@@ -5,14 +5,13 @@ red='\e[0;31m'
nc='\e[0m'
black='\e[0;30m'
-
printf "${green}Add a Reaktor Secret${nc}\n"
printf "provide Nick Name:\n"
nick=${1:-}
test -z "${nick:-}" && read nick
printf "provide Secret:$black\n"
-nick=${2:-}
+secret=${2:-}
test -z "${secret:-}" && read secret
-
-printf "${nc}nick secret"
+echo "$nick $secret" >> /krebs/painload/Reaktor/admin.lst
+printf "${green}done${nc}"