diff --git a/scripts/upgrade b/scripts/upgrade index 18651eb..c8eb570 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -229,6 +229,17 @@ ynh_script_progression --message="Securing files and directories..." chown -R $app: $final_path chmod -R 775 ${final_path}/storage +#================================================= +# SETUP A CRON +#================================================= +ynh_script_progression --message="Setuping a cron..." + +cp ../conf/cron /etc/cron.d/$app + +ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" + #================================================= # RELOAD NGINX #=================================================