зеркало из https://github.com/mozilla/bugbot.git
Move the cron scripts to a new director called scripts
This commit is contained in:
Родитель
ba86688b97
Коммит
fd328185e6
|
@ -115,10 +115,10 @@ This needs to run on a private server because it will have login for smtp and bu
|
|||
Cronjob::
|
||||
|
||||
CRON_DIR=/path/to/repository
|
||||
00 7 * * * cd $CRON_DIR ; ./update_people.sh &> /tmp/autonag-people.log
|
||||
00 12 * * 1-5 cd $CRON_DIR ; ./runauto_nag_weekdays.sh &> /tmp/autonag-day.log
|
||||
00 8 * * * cd $CRON_DIR ; ./runauto_nag_daily.sh &> /tmp/autonag-day.log
|
||||
30 */1 * * * cd $CRON_DIR ; ./runauto_nag_hourly.sh &> /tmp/autonag-hour.log
|
||||
00 7 * * * cd $CRON_DIR ; ./cron_run_update_people.sh &> /tmp/autonag-people.log
|
||||
00 12 * * 1-5 cd $CRON_DIR ; ./cron_run_weekdays.sh &> /tmp/autonag-day.log
|
||||
00 8 * * * cd $CRON_DIR ; ./cron_run_daily.sh &> /tmp/autonag-day.log
|
||||
30 */1 * * * cd $CRON_DIR ; ./cron_run_hourly.sh &> /tmp/autonag-hour.log
|
||||
|
||||
|
||||
We run hourly jobs at minute 30 past every hour to avoid overlap with daily jobs.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
PATH_SCRIPT="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
PATH_SCRIPT="$( cd "$(dirname "$0")/.." ; pwd -P )"
|
||||
cd "$PATH_SCRIPT"
|
||||
|
||||
if test ! -f auto_nag/scripts/configs/config.json; then
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
export PYTHONPATH=.
|
||||
|
||||
./runauto_nag_common.sh
|
||||
./scripts/cron_common_start.sh
|
||||
|
||||
. venv/bin/activate
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
export PYTHONPATH=.
|
||||
|
||||
./runauto_nag_common.sh
|
||||
./scripts/cron_common_start.sh
|
||||
|
||||
. venv/bin/activate
|
||||
|
|
@ -3,7 +3,7 @@ set -e
|
|||
|
||||
export PYTHONPATH=.
|
||||
|
||||
./runauto_nag_common.sh
|
||||
./scripts/cron_common_start.sh
|
||||
|
||||
. venv/bin/activate
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
export PYTHONPATH=.
|
||||
|
||||
./runauto_nag_common.sh
|
||||
./scripts/cron_common_start.sh
|
||||
|
||||
. venv/bin/activate
|
||||
|
Загрузка…
Ссылка в новой задаче