This commit is contained in:
2026-03-25 00:37:30 +00:00
parent fbb564e8fb
commit 795c6f5b3e
+8
View File
@@ -120,3 +120,11 @@ wait_for_rsync() {
exit 1
}
# ----------------------------- Check Server -----------------------------
check_server_online() {
if ping -c 1 "$REMOTE_SERVER" &>/dev/null; then
return 0
else
return 1
fi
}