Files
docker-wsusoffline/run.sh
T
2018-04-20 11:15:01 +02:00

22 lines
300 B
Bash

#!/bin/bash
SLEEP=${SLEEP:-"$SLEEP"}
ctrlc()
{
exit 1 # stop the script
}
trap 'ctrlc' INT
while true; do
cd /wsus && ./update.sh
sleep 10
chown -R nobody:nogroup /wsus/wsusoffline
cd /wsus && ./download.sh
echo "Sleeping for $SLEEP before next download."
sleep "$SLEEP"
done