mirror of
https://github.com/R0GGER/docker-wsusoffline.git
synced 2026-11-11 01:10:06 +01:00
22 lines
300 B
Bash
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
|