From 549a19e8faf38a77aaad643ea45f7b9501f237c4 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Fri, 22 Nov 2019 23:35:10 +0100 Subject: [PATCH] Add updater.sh and cron --- cron | 3 +++ updater.sh | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 cron create mode 100644 updater.sh diff --git a/cron b/cron new file mode 100644 index 0000000..c58358c --- /dev/null +++ b/cron @@ -0,0 +1,3 @@ +15 * * * * jsub -once -N column_mover python3 /data/project/phabbot/phabbot/column_mover.py >/dev/null 2>&1 +10 * * * * jsub -once -N patch_for_review python3 /data/project/phabbot/phabbot/patchforreview_remover.py >/dev/null 2>&1 +5 * * * * jsub -once -N updater bash /data/project/phabbot/phabbot/updater.sh >/dev/null 2>&1 diff --git a/updater.sh b/updater.sh new file mode 100644 index 0000000..ed6f01e --- /dev/null +++ b/updater.sh @@ -0,0 +1,3 @@ +cd /data/project/phabbot/phabbot +git pull +cat /data/project/phabbot/phabbot/cron | crontab - \ No newline at end of file