downdetector/scripts/loop.sh
2022-07-26 22:16:09 -04:00

18 lines
245 B
Bash
Executable File

#! /bin/bash
WAITTIME=60
chmod +x /dd/scripts/*
apt-get update && apt-get install -y iputils-ping
mkdir -p /dd/logs
while true;
do
/dd/scripts/file_uptime.sh || exit 404
echo ""
echo "Waiting $WAITTIME seconds"
sleep $WAITTIME
done;