mirror of
https://github.com/YunoHost-Apps/matomo_ynh.git
synced 2024-09-03 19:45:56 +02:00
set up cron
This commit is contained in:
parent
cd3aa7643b
commit
6e899aff69
3 changed files with 18 additions and 12 deletions
|
@ -105,13 +105,16 @@ ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setuping a cron..."
|
ynh_script_progression --message="Setuping a cron..."
|
||||||
|
|
||||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="../conf/cron"
|
cron_path="/etc/cron.d/$app"
|
||||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/cron"
|
cp -a ../conf/matomo.cron "$cron_path"
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/cron"
|
chown root: "$cron_path"
|
||||||
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="../conf/cron"
|
chmod 644 "$cron_path"
|
||||||
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="../conf/cron"
|
|
||||||
|
|
||||||
cp -f ../conf/cron /etc/cron.d/$app
|
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="$cron_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -144,13 +144,16 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setuping a cron..."
|
ynh_script_progression --message="Setuping a cron..."
|
||||||
|
|
||||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="../conf/cron"
|
cron_path="/etc/cron.d/$app"
|
||||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/cron"
|
cp -a ../conf/matomo.cron "$cron_path"
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="../conf/cron"
|
chown root: "$cron_path"
|
||||||
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="../conf/cron"
|
chmod 644 "$cron_path"
|
||||||
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="../conf/cron"
|
|
||||||
|
|
||||||
cp -f ../conf/cron /etc/cron.d/$app
|
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$cron_path"
|
||||||
|
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="$cron_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue