Update run.sh

This commit is contained in:
R0GGER authored and GitHub committed 2018-04-19 20:53:51 +02:00
1 parent 3baaf8e048
commit 2d393939dc
1 file changed
+4 -22
+4 -22
View File
@@ -1,5 +1,3 @@
#!/bin/bash
SLEEP=${SLEEP:-"$SLEEP"}
ctrlc()
@@ -11,28 +9,12 @@ trap 'ctrlc' INT
while true; do
cd /wsus && ./update.sh
sleep 10
cd /wsus && ./update.sh
sleep 10
for SYSTEMS in ${SYSTEMS}; do
for LANGUAGE in ${LANGUAGE}; do
cd /wsus/wsusoffline/sh && ./download-updates.bash ${SYSTEMS} ${LANGUAGE} ${PARAMS}
done
done
chown -R nobody:nogroup /wsus/wsusoffline
cd /wsus && ./download.sh
for OFFICE in ${OFFICE}; do
for LANGUAGE in ${LANGUAGE}; do
cd /wsus/wsusoffline/sh && ./download-updates.bash ${OFFICE} ${LANGUAGE}
done
done
if [[ $ISO == y* ]]; then
mkdir -p /wsus/wsusoffline/client/iso
echo "Creating ISO..."
genisoimage -iso-level 4 -J -joliet-long -rational-rock -allow-limited-size -quiet -o /wsus/wsusoffline/client/iso/wsusoffline.iso -m '@*' -m '.*' -m 'iso' /wsus/wsusoffline/client
echo "Done"
fi
echo "Sleeping for $SLEEP before next download."
sleep "$SLEEP"
done