From 4936eaa65a1f9774de72d45a9d51b4bb7fd1ce57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Tue, 14 Jul 2015 17:36:45 -0500 Subject: [PATCH] rrs/tools: Add daily_run.sh script for provide updates. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aníbal Limón --- README.rrs | 9 +-------- rrs/tools/daily_run.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 8 deletions(-) create mode 100755 rrs/tools/daily_run.sh diff --git a/README.rrs b/README.rrs index de41950..8722bdf 100644 --- a/README.rrs +++ b/README.rrs @@ -39,14 +39,7 @@ $ ./rrs/tools/rrs_upgrade_history.py -d --initial $ ./rrs/tools/rrs_upstream_history.py -d $ ./rrs/tools/rrs_distros.py -d -9. Then you can run update and rrs_maintainer_history scripts. - -$ ./layerindex/update.py --reload -$ ./rrs/tools/rrs_unique_recipes.py -d -$ ./rrs/tools/rrs_maintainer_history.py -d -$ ./rrs/tools/rrs_upgrade_history.py -d -$ ./rrs/tools/rrs_upstream_history.py -d -$ ./rrs/tools/rrs_distros.py -d +9. Configure cron to run daily update, set rrs_dir and venv_activate into rrs/tools/daily_run.sh. Maintenance ----------- diff --git a/rrs/tools/daily_run.sh b/rrs/tools/daily_run.sh new file mode 100755 index 0000000..b8d373c --- /dev/null +++ b/rrs/tools/daily_run.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +rrs_dir=__RRS_PATH__ +venv_activate=__VENV_ACTIVATE__ + +source $venv_activate + +$rrs_dir/layerindex/update.py --reload +$rrs_dir/rrs/tools/rrs_unique_recipes.py -d +$rrs_dir/rrs/tools/rrs_maintainer_history.py -d +$rrs_dir/rrs/tools/rrs_upgrade_history.py -d +$rrs_dir/rrs/tools/rrs_upstream_history.py -d +$rrs_dir/rrs/tools/rrs_distros.py -d + +if [ "$1" = "email" ]; then + $rrs_dir/rrs/tools/rrs_upstream_email.py +fi