From: Andreas Steffen Date: Wed, 26 Dec 2012 08:28:17 +0000 (+0100) Subject: make pacman.sh run under cron X-Git-Tag: 5.0.2dr4~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c65b6c3059687133d87eb10acf0f9cde4b9159c;p=thirdparty%2Fstrongswan.git make pacman.sh run under cron --- diff --git a/src/libimcv/plugins/imv_os/pacman.sh b/src/libimcv/plugins/imv_os/pacman.sh index a17a0839a5..e9134ea5d5 100755 --- a/src/libimcv/plugins/imv_os/pacman.sh +++ b/src/libimcv/plugins/imv_os/pacman.sh @@ -5,6 +5,10 @@ DEBIAN=http://packages.debian.org UBUNTU=http://packages.ubuntu.com UBUNTU_VERSIONS="quantal precise oneiric lucid" PACKAGES=allpackages?format=txt.gz +PACMAN=/usr/libexec/ipsec/pacman +DIR=/etc/pts + +cd $DIR for v in $UBUNTU_VERSIONS do @@ -15,22 +19,22 @@ done wget $DEBIAN/stable/$PACKAGES -O $DATE-squeeze.txt.gz gunzip *.gz -ipsec pacman --product "Ubuntu 12.10" --file $DATE-quantal.txt +$PACMAN --product "Ubuntu 12.10" --file $DATE-quantal.txt echo -ipsec pacman --product "Ubuntu 12.10" --file $DATE-quantal-updates.txt --update +$PACMAN --product "Ubuntu 12.10" --file $DATE-quantal-updates.txt --update echo -ipsec pacman --product "Ubuntu 12.04" --file $DATE-precise.txt +$PACMAN --product "Ubuntu 12.04" --file $DATE-precise.txt echo -ipsec pacman --product "Ubuntu 12.04" --file $DATE-precise-updates.txt --update +$PACMAN --product "Ubuntu 12.04" --file $DATE-precise-updates.txt --update echo -ipsec pacman --product "Ubuntu 11.10" --file $DATE-oneiric.txt +$PACMAN --product "Ubuntu 11.10" --file $DATE-oneiric.txt echo -ipsec pacman --product "Ubuntu 11.10" --file $DATE-oneiric-updates.txt --update +$PACMAN --product "Ubuntu 11.10" --file $DATE-oneiric-updates.txt --update echo -ipsec pacman --product "Ubuntu 10.04" --file $DATE-lucid.txt +$PACMAN --product "Ubuntu 10.04" --file $DATE-lucid.txt echo -ipsec pacman --product "Ubuntu 10.04" --file $DATE-lucid-updates.txt --update +$PACMAN --product "Ubuntu 10.04" --file $DATE-lucid-updates.txt --update echo -ipsec pacman --product "Debian squeeze" --file $DATE-squeeze.txt +$PACMAN --product "Debian squeeze" --file $DATE-squeeze.txt cp config.db config.db-$DATE