Added simple cron script

To be run on a daily basis
This commit is contained in:
Yorhel 2012-07-07 10:52:20 +02:00
parent b463d8e87e
commit 99ec200895
2 changed files with 7 additions and 1 deletions

View file

@ -75,7 +75,7 @@ checkpkg() {
syncrepo() {
REPO=$1
F="$TMP/$REPO/repo.tar.gz"
echo "============ $REPO"
echo "============ $MIRROR $REPO"
$CURL "$MIRROR/$REPO/os/i686/$REPO.files.tar.gz" -o "$F" || return 1
tar -C "$TMP/$REPO" -xf "$F" || return 1
rm -f "$F"

6
util/cron.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
./arch.sh
./deb.sh ubuntu_active
./deb.sh debian_active