Initial checkin

Package-Manager: portage-2.2.0_alpha166
RepoMan-Options: --force
This commit is contained in:
Mario Fetka
2013-04-18 17:49:09 +02:00
parent 614fd627bc
commit dff9ccf8a6
7 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#!/bin/bash
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
WSUSOFFLINEPROGRAM=/opt/wsusoffline/sh/DownloadUpdates.sh
WSUSOFFLINECONFIG=/etc/conf.d/wsusoffline
if [ ! -f $WSUSOFFLINEPROGRAM ]
then
echo "the Downloader $WSUSOFFLINEPROGRAM is not present."
exit 0
fi
if [ -f $WSUSOFFLINECONFIG ]
then
echo "source"
source $WSUSOFFLINECONFIG
fi
#[ ! -z $WSUSOFFLINEOPTIONS ] || exit 0
echo $WSUSOFFLINEOPTIONS
pushd /opt/wsusoffline/sh
for i in $WSUSOFFLINEOPTIONS
do
# process
echo $(echo $i|sed 's/;/ /g')
$WSUSOFFLINEPROGRAM $(echo $i|sed 's/;/ /g')
done
popd
echo "setting rights to the wsus user and group"
chown -R wsus:wsus /opt/wsusoffline