From a70267ea060ffe7c0ac303a16c1c4420fb4c892f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 15 Sep 2017 08:09:46 +0200 Subject: [PATCH] chmod on the .ics file when created to allow to override it --- build/service/Updater.php | 1 + 1 file changed, 1 insertion(+) diff --git a/build/service/Updater.php b/build/service/Updater.php index a1923a7..9017934 100644 --- a/build/service/Updater.php +++ b/build/service/Updater.php @@ -48,6 +48,7 @@ foreach($this->config->getDiplomes() as $d_id=>$d_name){ file_put_contents(__ROOT__."/tmp/$d_id.ics", "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//xdrm.io//NONSGML v1.0//EN\nMETHOD:PUBLISH\nX-WR-CALNAME: UPPA $d_name\n"); + \chmod(__ROOT__."/tmp/$d_id.ics", 775); /* (1) Browse each date ---------------------------------------------------------*/