make pacman.sh run under cron
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user