diff --git a/scripts/install b/scripts/install index 2eb6baa..ee80e92 100755 --- a/scripts/install +++ b/scripts/install @@ -216,6 +216,8 @@ ynh_store_file_checksum "${final_path}/config/config.php" cron_path="/etc/cron.d/$app" cp -a ../conf/nextcloud.cron "$cron_path" +chown root: "$cron_path" +chmod 644 "$cron_path" ynh_replace_string "#USER#" "$app" "$cron_path" ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path" diff --git a/scripts/upgrade b/scripts/upgrade index a0ae504..a156b9f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -286,6 +286,8 @@ ynh_store_file_checksum "${final_path}/config/config.php" cron_path="/etc/cron.d/$app" cp -a ../conf/nextcloud.cron "$cron_path" +chown root: "$cron_path" +chmod 644 "$cron_path" ynh_replace_string "#USER#" "$app" "$cron_path" ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"