From dd9c25b79901ca7ed51672c7906792bd74d416d5 Mon Sep 17 00:00:00 2001 From: lokas Date: Sat, 10 Aug 2024 09:27:51 +0300 Subject: [PATCH] add php bot to cronJob --- toolforge/cronjobs1.yaml | 6 ++++++ toolforge/jobs/php_archive_bot.sh | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 toolforge/jobs/php_archive_bot.sh diff --git a/toolforge/cronjobs1.yaml b/toolforge/cronjobs1.yaml index def282c5..3c28d1ad 100644 --- a/toolforge/cronjobs1.yaml +++ b/toolforge/cronjobs1.yaml @@ -34,3 +34,9 @@ image: tf-python39 emails: onfailure <<: *defaults +- name: php-archive-bot + no-filelog: false + command: $HOME/repos/toolforge/jobs/php_archive_bot.sh + schedule: '0 6 * * *' + image: php7.4 + emails: onfailure \ No newline at end of file diff --git a/toolforge/jobs/php_archive_bot.sh b/toolforge/jobs/php_archive_bot.sh new file mode 100644 index 00000000..a90d3a51 --- /dev/null +++ b/toolforge/jobs/php_archive_bot.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +php "$HOME"/sc/script/MyScripts.php + +# Exit the script after running all the Python files +exit 0