1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00

! [YEP-2.12] You should not need to use 'sudo'

This commit is contained in:
yalh76 2020-06-14 04:13:13 +02:00
parent 32aebc2a54
commit 711ad76214
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ exec_as "$app" php$phpversion "$final_path/admin/cli/purge_caches.php"
ynh_script_progression --message="Adding cron job..."
# Set up poller
sudo cp "../conf/cron" "/etc/cron.d/$app"
cp "../conf/cron" "/etc/cron.d/$app"
ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app"
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app"

View file

@ -149,7 +149,7 @@ exec_as "$app" php$phpversion "$final_path/admin/cli/purge_caches.php"
ynh_script_progression --message="Adding cron job..."
# Set up poller
sudo cp "../conf/cron" "/etc/cron.d/$app"
cp "../conf/cron" "/etc/cron.d/$app"
ynh_replace_string "__APP__" "$app" "/etc/cron.d/$app"
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app"