From 009466999dfaa7e7769b046d938035fa4bcb4aad Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Mon, 29 Jan 2018 21:58:35 +0100 Subject: [PATCH] Fix cron config file rights (fixes #88) --- scripts/install | 2 ++ scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+) 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"