From 2486dcb93afbc28f6a0d31137ffba40b6c6bb018 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Mon, 28 Jul 2008 18:07:10 +0200 Subject: [PATCH] install.sh: Suggest concrete crontab examples --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 66e3ed7..1b7068c 100755 --- a/install.sh +++ b/install.sh @@ -38,9 +38,12 @@ if [ -n "$cfg_mirror" ]; then if [ ! -x "$($cfg_git_bin --exec-path)/git-mirror" ]; then echo "ERROR: Your $cfg_git_bin does not know about git-mirror; git.git submodule has it but you need to install it manually" fi - echo "!!! Do not forget to set up the clone and update cronjobs for $cfg_mirror_user" + echo "--- Recommended crontab for $cfg_mirror_user:" + echo "*/1 * * * * /usr/bin/nice -n 18 $cfg_basedir/jobs/clonecheck.sh" + echo "*/10 * * * * /usr/bin/nice -n 18 $cfg_basedir/jobs/updatecheck.sh # adjust frequency based on number of repos" elif [ "$cfg_permission_control" = "Group" ]; then - echo "!!! Do not forget to set up the fixup cronjob for root" + echo "--- Recommended crontab for root:" + echo "*/2 * * * * /usr/bin/nice -n 18 /root/fixupcheck.sh # adjust frequency based on number of repos" fi -- 2.11.4.GIT