From 26ca5c2e02e50b5c47754a40fd997ca759834168 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 10 Oct 2020 06:27:45 -0500 Subject: [PATCH] Add small improvements --- add-jibri-node.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/add-jibri-node.sh b/add-jibri-node.sh index 6e6e121..dd7d571 100644 --- a/add-jibri-node.sh +++ b/add-jibri-node.sh @@ -380,6 +380,7 @@ echo -e "\n---- We'll connect to main server ----" read -n 1 -s -r -p "Press any key to continue..."$'\n' sudo su $NJN_USER -c "ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -o -a 100 -q -N ''" echo "Remote pass: $MJS_USER_PASS" +ssh-keyscan -t rsa $MAIN_SRV_DOMAIN >> ~/.ssh/known_hosts ssh $MJS_USER@$MAIN_SRV_DOMAIN sh -c "'cat >> .ssh/authorized_keys'" < /home/$NJN_USER/.ssh/id_rsa.pub sudo su $NJN_USER -c "ssh-keyscan -t rsa $MAIN_SRV_DOMAIN >> /home/$NJN_USER/.ssh/known_hosts" @@ -457,13 +458,13 @@ systemctl enable jibri systemctl enable jibri-xorg systemctl enable jibri-icewm -echo -e "\nSending updated add-jibri-node.sh file to main server sync user..." +check_snd_driver + +echo -e "\nSending updated add-jibri-node.sh file to main server sync user...\n" cp $PWD/add-jibri-node.sh /tmp sudo -u $NJN_USER scp /tmp/add-jibri-node.sh $MJS_USER@$MAIN_SRV_DOMAIN:/home/$MJS_USER/ rm $PWD/add-jibri-node.sh /tmp/add-jibri-node.sh -check_snd_driver - echo " ######################################################################## Node addition complete!!