Update updatescripts.sh
This commit is contained in:
@@ -14,9 +14,6 @@ fi
|
|||||||
|
|
||||||
guardband() {
|
guardband() {
|
||||||
if [ $? -ne 0 ]; then
|
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}"
|
echo -e "${CR}Script Exited with an Error.${NF}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -33,4 +30,19 @@ if ! wget --spider "$SRV" 2>/dev/null; then
|
|||||||
echo -e "${CG}Server available - ${FB}Proceeding...${NF}"
|
echo -e "${CG}Server available - ${FB}Proceeding...${NF}"
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
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