From 99ec20089586204126b112098ecb58c5fa5cb5be Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 7 Jul 2012 10:52:20 +0200 Subject: [PATCH] Added simple cron script To be run on a daily basis --- util/arch.sh | 2 +- util/cron.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 util/cron.sh diff --git a/util/arch.sh b/util/arch.sh index 4efaf42..d72269c 100755 --- a/util/arch.sh +++ b/util/arch.sh @@ -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" diff --git a/util/cron.sh b/util/cron.sh new file mode 100755 index 0000000..e69020a --- /dev/null +++ b/util/cron.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +./arch.sh +./deb.sh ubuntu_active +./deb.sh debian_active +