Browse Source

set chmod 0770 for feed dumps

main
ghost 1 year ago
parent
commit
1998e73515
  1. 14
      src/crontab/export/feed.php

14
src/crontab/export/feed.php

@ -189,6 +189,8 @@ try
{ {
fwrite($handle, json_encode($manifest)); fwrite($handle, json_encode($manifest));
fclose($handle); fclose($handle);
chmod(__DIR__ . '/../../public/api/manifest.json', 0770);
} }
// Users // Users
@ -225,6 +227,8 @@ try
{ {
fwrite($handle, json_encode($users)); fwrite($handle, json_encode($users));
fclose($handle); fclose($handle);
chmod(__DIR__ . '/../../public/api/users.json', 0770);
} }
} }
@ -375,6 +379,8 @@ try
{ {
fwrite($handle, json_encode($magnets)); fwrite($handle, json_encode($magnets));
fclose($handle); fclose($handle);
chmod(__DIR__ . '/../../public/api/magnets.json', 0770);
} }
} }
@ -404,6 +410,8 @@ try
{ {
fwrite($handle, json_encode($magnetDownloads)); fwrite($handle, json_encode($magnetDownloads));
fclose($handle); fclose($handle);
chmod(__DIR__ . '/../../public/api/magnetDownloads.json', 0770);
} }
} }
@ -436,6 +444,8 @@ try
{ {
fwrite($handle, json_encode($magnetComments)); fwrite($handle, json_encode($magnetComments));
fclose($handle); fclose($handle);
chmod(__DIR__ . '/../../public/api/magnetComments.json', 0770);
} }
} }
@ -466,6 +476,8 @@ try
{ {
fwrite($handle, json_encode($magnetStars)); fwrite($handle, json_encode($magnetStars));
fclose($handle); fclose($handle);
chmod(__DIR__ . '/../../public/api/magnetStars.json', 0770);
} }
} }
@ -495,6 +507,8 @@ try
{ {
fwrite($handle, json_encode($magnetViews)); fwrite($handle, json_encode($magnetViews));
fclose($handle); fclose($handle);
chmod(__DIR__ . '/../../public/api/magnetViews.json', 0770);
} }
} }
} }

Loading…
Cancel
Save