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:
parent
32aebc2a54
commit
711ad76214
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ exec_as "$app" php$phpversion "$final_path/admin/cli/purge_caches.php"
|
||||||
ynh_script_progression --message="Adding cron job..."
|
ynh_script_progression --message="Adding cron job..."
|
||||||
|
|
||||||
# Set up poller
|
# 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 "__APP__" "$app" "/etc/cron.d/$app"
|
||||||
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
|
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
|
||||||
ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app"
|
ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app"
|
||||||
|
|
|
@ -149,7 +149,7 @@ exec_as "$app" php$phpversion "$final_path/admin/cli/purge_caches.php"
|
||||||
ynh_script_progression --message="Adding cron job..."
|
ynh_script_progression --message="Adding cron job..."
|
||||||
|
|
||||||
# Set up poller
|
# 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 "__APP__" "$app" "/etc/cron.d/$app"
|
||||||
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
|
ynh_replace_string "__FINAL_PATH__" "$final_path" "/etc/cron.d/$app"
|
||||||
ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app"
|
ynh_replace_string "__PHPVERSION__" "$phpversion" "/etc/cron.d/$app"
|
||||||
|
|
Loading…
Reference in a new issue