1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-22 03:52:37 +01:00

Add updater.sh and cron

This commit is contained in:
Amir Sarabadani 2019-11-22 23:35:10 +01:00
parent 73098f3ff1
commit 549a19e8fa
2 changed files with 6 additions and 0 deletions

3
cron Normal file
View file

@ -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

3
updater.sh Normal file
View file

@ -0,0 +1,3 @@
cd /data/project/phabbot/phabbot
git pull
cat /data/project/phabbot/phabbot/cron | crontab -