mirror of
https://github.com/R0GGER/docker-wsusoffline.git
synced 2026-11-11 09:12:41 +01:00
Update run.sh
This commit is contained in:
1 parent
3d59f070d5
commit
a366b68df0
1 file changed
+2
-17
@@ -1,19 +1,4 @@
|
||||
!/bin/bash
|
||||
|
||||
SYSTEM=${SYSTEM:-"all-x64"}
|
||||
LANGUAGE=${LANGUAGE:-"enu"}
|
||||
PARAMS=${PARAMS:-"/msse /dotnet"}
|
||||
SLEEP=${SLEEP:-"48h"}
|
||||
|
||||
ctrlc()
|
||||
{
|
||||
exit 1 # stop the script
|
||||
}
|
||||
|
||||
trap 'ctrlc' INT
|
||||
|
||||
while true; do
|
||||
cd /app/wsusoffline/sh && ./DownloadUpdates.sh "$SYSTEM" "$LANGUAGE" "$PARAMS"
|
||||
echo "Sleeping for $SLEEP before next download."
|
||||
sleep "$SLEEP"
|
||||
done
|
||||
cd /app/wsusoffline/sh && ./DownloadUpdates.sh "$SYSTEM" "$LANGUAGE" "$PARAMS"
|
||||
cd /app/wsusoffline/sh && ./DownloadUpdates.sh "$OFFICE" "$LANGUAGE" "$PARAMS"
|
||||
Reference in new issue
Block a user