Update updatescripts.sh
This commit is contained in:
@@ -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
|
||||
@@ -34,3 +31,18 @@ if ! wget --spider "$SRV" 2>/dev/null; then
|
||||
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
|
||||
Reference in New Issue
Block a user