diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-12-26 09:28:17 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-12-26 09:28:17 +0100 |
commit | 1c65b6c3059687133d87eb10acf0f9cde4b9159c (patch) | |
tree | ac42449a6608064d596cf3af843d8d417d7b68c1 /src | |
parent | 6be6a5240518422349a7c8fb2a218d66288e7ee3 (diff) | |
download | strongswan-1c65b6c3059687133d87eb10acf0f9cde4b9159c.tar.bz2 strongswan-1c65b6c3059687133d87eb10acf0f9cde4b9159c.tar.xz |
make pacman.sh run under cron
Diffstat (limited to 'src')
-rwxr-xr-x | src/libimcv/plugins/imv_os/pacman.sh | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/libimcv/plugins/imv_os/pacman.sh b/src/libimcv/plugins/imv_os/pacman.sh index a17a0839a..e9134ea5d 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 |