diff --git a/conf/cron b/conf/cron index bc9c1b2..7c7de7c 100644 --- a/conf/cron +++ b/conf/cron @@ -1 +1 @@ -* * * * * /usr/bin/php__PHPVERSION__ __FINALPATH__/public/index.php scheduled-activities \ No newline at end of file +* * * * * __USER__ /usr/bin/php__PHPVERSION__ __FINALPATH__/public/index.php scheduled-activities \ No newline at end of file diff --git a/scripts/install b/scripts/install index 7fa92b0..c1dd1b8 100755 --- a/scripts/install +++ b/scripts/install @@ -104,8 +104,6 @@ ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env ynh_script_progression --message="Setuping a cron..." 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 @@ -115,7 +113,6 @@ chmod 644 "/etc/cron.d/$app" # Set permissions to app files chown -R $app:$app $final_path -#chmod o-rwx $final_path chmod 600 $final_path/.env #=================================================