]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
make pacman.sh run under cron
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 26 Dec 2012 08:28:17 +0000 (09:28 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 26 Dec 2012 08:28:17 +0000 (09:28 +0100)
src/libimcv/plugins/imv_os/pacman.sh

index a17a0839a562780ed64e919e52e266ffc6b8a2b6..e9134ea5d52da20ce5b8ea425a99946adffd1ef8 100755 (executable)
@@ -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