mirror of
https://github.com/YunoHost-Apps/matomo_ynh.git
synced 2024-09-03 19:45:56 +02:00
Add PHP variable to cron
This commit is contained in:
parent
3bf27f6e09
commit
24e4ff178e
3 changed files with 5 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
|||
MAILTO="admin"
|
||||
5 * * * * __USER__ /usr/bin/php__PHPVERSION__ __FINALPATH__/console core:archive --url=https://__DOMAIN__/__PATH__ > /dev/null
|
||||
5 * * * * __APP__ /usr/bin/php__PHPVERSION__ __FINALPATH__/console core:archive --url=https://__DOMAIN__/__PATH__ > /dev/null
|
||||
|
|
|
@ -106,7 +106,7 @@ ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
|||
ynh_script_progression --message="Setuping a cron..."
|
||||
|
||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="../conf/cron"
|
||||
|
|
|
@ -123,10 +123,11 @@ ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Setuping a cron..."
|
||||
|
||||
ynh_replace_string --match_string="YNH_WWW_PATH" --replace_string="$final_path" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="../conf/cron"
|
||||
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="../conf/cron"
|
||||
cp -f ../conf/cron /etc/cron.d/$app
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue