diff --git a/updatescripts.sh b/updatescripts.sh index b63ea9b..4c2d3d1 100644 --- a/updatescripts.sh +++ b/updatescripts.sh @@ -14,9 +14,6 @@ fi guardband() { if [ $? -ne 0 ]; then -echo -e "${CY}Cleaning up temp directory...${NF}" -rm -rf /.SSH/automated/.temp/ -sleep 2 echo -e "${CR}Script Exited with an Error.${NF}" exit 1 fi @@ -33,4 +30,19 @@ if ! wget --spider "$SRV" 2>/dev/null; then echo -e "${CG}Server available - ${FB}Proceeding...${NF}" sleep 2 fi -} \ No newline at end of file +} + +updatescripts(){ +if [ ! -f /.SSH/script/ ]; then +mkdir /.SSH/script +fi +wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/renewkeys.sh -O /.SSH/script/renewkeys.sh +wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/deploy-newssh.sh -O /.SSH/script/deploy-newssh.sh +wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/autoremakekeys.sh -O /.SSH/script/autoremakekeys.sh +wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/updatescripts.sh -O /.SSH/script/updatescripts.sh +} + +verifygit +guardband +updatescripts +guardband \ No newline at end of file