mirror of
https://github.com/YunoHost-Apps/moodle_ynh.git
synced 2024-09-03 19:46:23 +02:00
Fix cron task
This commit is contained in:
parent
2144864c94
commit
b960720820
3 changed files with 3 additions and 1 deletions
|
@ -1 +1 @@
|
|||
*/15 * * * * /usr/bin/php__YNH_PHP_VERSION__ __FINAL_PATH__/admin/cli/cron.php >/dev/null
|
||||
*/15 * * * * __APP__ /usr/bin/php__YNH_PHP_VERSION__ -f __FINAL_PATH__/admin/cli/cron.php
|
||||
|
|
|
@ -157,6 +157,7 @@ exec_as "$app" php$YNH_PHP_VERSION "$final_path/admin/cli/purge_caches.php"
|
|||
|
||||
# Set up poller
|
||||
sudo cp "../conf/cron" "/etc/cron.d/$app"
|
||||
ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app"
|
||||
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
|
||||
ynh_replace_string "__YNH_PHP_VERSION__" "$YNH_PHP_VERSION" "/etc/cron.d/$app"
|
||||
|
||||
|
|
|
@ -131,6 +131,7 @@ chown -R "$app": "$final_path"
|
|||
|
||||
# Set up poller
|
||||
sudo cp "../conf/cron" "/etc/cron.d/$app"
|
||||
ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app"
|
||||
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
|
||||
ynh_replace_string "__YNH_PHP_VERSION__" "$YNH_PHP_VERSION" "/etc/cron.d/$app"
|
||||
|
||||
|
|
Loading…
Reference in a new issue