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

View File

@@ -0,0 +1,10 @@
# /etc/conf.d/wsusoffline: config file for /etc/init.d/wsusoffline
# Options to pass to the DownloadUpdates.sh script of wsusoffline.
# you need to combine OS/Product with language.
# all-x64 w2k3-x64 w60-x64 w61-x64 w62-x64
# all-x86 w2k3 wxp w60 w61 w62
# ofc o2k3 o2k7 o2k10 o2k13
# for ex. wxp;deu o2k3;deu all-x86;deu ...
WSUSOFFLINE_OPTIONS=""

View File

@@ -0,0 +1,2 @@
# every 8 day of month to follow the Microsoft patch day, 00:00
0 0 8 * * root [ -x /usr/bin/wsusoffline ] && /usr/bin/wsusoffline