Update updatescripts.sh

This commit is contained in:
2026-01-31 22:19:01 -05:00
parent a153a40cf1
commit 00c6b48890

View File

@@ -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
}
}
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