packages: git-core-slug/crontab, git-core-slug/slug_watch-cron (NEW)=?UTF-8?Q?=20?=- don'...
draenog
draenog at pld-linux.org
Sat Jun 30 19:52:40 CEST 2012
Author: draenog Date: Sat Jun 30 17:52:40 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- don't hardcode position of repositories in crontab
---- Files affected:
packages/git-core-slug:
crontab (1.3 -> 1.4) , slug_watch-cron (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/git-core-slug/crontab
diff -u packages/git-core-slug/crontab:1.3 packages/git-core-slug/crontab:1.4
--- packages/git-core-slug/crontab:1.3 Wed Jun 27 19:14:34 2012
+++ packages/git-core-slug/crontab Sat Jun 30 19:52:35 2012
@@ -1,5 +1,5 @@
SHELL=/bin/sh
MAILTO=root
-03 5 * * * git git --git-dir=/home/services/git/repositories/Refs.git gc --aggressive
-*/15 * * * * git git --git-dir=/home/services/git/repositories/Refs.git gc
+03 5 * * * git /usr/bin/slug_watch-cron --aggressive
+*/15 * * * * git /usr/bin/slug_watch-cron
================================================================
Index: packages/git-core-slug/slug_watch-cron
diff -u /dev/null packages/git-core-slug/slug_watch-cron:1.1
--- /dev/null Sat Jun 30 19:52:40 2012
+++ packages/git-core-slug/slug_watch-cron Sat Jun 30 19:52:35 2012
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -f /etc/sysconfig/slug_watch ]; then
+ . /etc/sysconfig/slug_watch
+fi
+
+if [ -n "$REFREPODIR" ]; then
+ git --git-dir="$REFREPODIR/Refs.git" gc "$@"
+fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/git-core-slug/crontab?r1=1.3&r2=1.4
More information about the pld-cvs-commit
mailing list