From 7eb9d45117d43a78497b03177dba1f4e9b6d7955 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 5 Oct 2020 21:10:29 -0500 Subject: [PATCH] Check other variables --- add-jibri-node.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/add-jibri-node.sh b/add-jibri-node.sh index c58cb89..150bc28 100644 --- a/add-jibri-node.sh +++ b/add-jibri-node.sh @@ -147,6 +147,8 @@ check_var JibriBrewery "$JibriBrewery" check_var JB_NAME "$JB_NAME" check_var JB_AUTH_PASS "$JB_AUTH_PASS" check_var JB_REC_PASS "$JB_REC_PASS" +check_var MJS_USER "$MJS_USER" +check_var MJS_USER_PASS "$MJS_USER_PASS" # Rename hostname for each jibri node hostnamectl set-hostname "jbnode${ADDUP}.${MAIN_SRV_DOMAIN}" @@ -366,6 +368,7 @@ echo "$NJN_USER:$NJN_USER_PASS" | chpasswd #Create ssh key sudo su $NJN_USER -c "ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -o -a 100 -q -N ''" +echo "$NJN_USER:$NJN_USER_PASS" ssh $MJS_USER@$MAIN_SRV_DOMAIN sh -c "'cat >> .ssh/authorized_keys'" < /home/$NJN_USER/.ssh/id_rsa.pub #Temp Workaround echo "Please manually accept the connection by executing: ssh $MJS_USER@$MAIN_SRV_DOMAIN ...then exit"