mirror of
https://github.com/R0GGER/docker-wsusoffline.git
synced 2026-11-11 09:12:41 +01:00
21 lines
288 B
Bash
21 lines
288 B
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
|