diff --git a/conf/cron b/conf/cron index 659c3411..8100d341 100644 --- a/conf/cron +++ b/conf/cron @@ -1 +1 @@ -* * * * * /usr/bin/php__PHPVERSION__ __FINALPATH__/artisan schedule:run >> /dev/null 2>&1 +* * * * * __APP__ /usr/bin/php__PHPVERSION__ __FINALPATH__/artisan schedule:run >> /dev/null 2>&1 diff --git a/scripts/install b/scripts/install index 852df63f..2ec24270 100644 --- a/scripts/install +++ b/scripts/install @@ -184,9 +184,6 @@ ynh_script_progression --message="Installing the cron file..." ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" -chown root: "/etc/cron.d/$app" -chmod 644 "/etc/cron.d/$app" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/restore b/scripts/restore index 435ba9fd..1b93b2e1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -110,8 +110,6 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name ynh_script_progression --message="Restoring various files..." ynh_restore_file --origin_path="/etc/cron.d/$app" -chown root: "/etc/cron.d/$app" -chmod 644 "/etc/cron.d/$app" mkdir -p "/var/log/$app/" touch "/var/log/$app/${app}-horizon.log" diff --git a/scripts/upgrade b/scripts/upgrade index a116a6e5..59ed3950 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -247,9 +247,6 @@ ynh_script_progression --message="Upgrading cron file..." ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" -chown root: "/etc/cron.d/$app" -chmod 644 "/etc/cron.d/$app" - #================================================= # SETUP SUPERVISOR #=================================================