From a366b68df0fa2fff62e6e0c32eed473742c56825 Mon Sep 17 00:00:00 2001 From: R0GGER Date: Mon, 4 Apr 2016 17:54:31 +0200 Subject: [PATCH] Update run.sh --- run.sh | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/run.sh b/run.sh index 26ecbb4..04f54b7 100644 --- a/run.sh +++ b/run.sh @@ -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"