mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-13 16:37:53 +00:00
set chmod 0770 for feed dumps
This commit is contained in:
parent
294a33e5c2
commit
1998e73515
@ -189,6 +189,8 @@ try
|
||||
{
|
||||
fwrite($handle, json_encode($manifest));
|
||||
fclose($handle);
|
||||
|
||||
chmod(__DIR__ . '/../../public/api/manifest.json', 0770);
|
||||
}
|
||||
|
||||
// Users
|
||||
@ -225,6 +227,8 @@ try
|
||||
{
|
||||
fwrite($handle, json_encode($users));
|
||||
fclose($handle);
|
||||
|
||||
chmod(__DIR__ . '/../../public/api/users.json', 0770);
|
||||
}
|
||||
}
|
||||
|
||||
@ -375,6 +379,8 @@ try
|
||||
{
|
||||
fwrite($handle, json_encode($magnets));
|
||||
fclose($handle);
|
||||
|
||||
chmod(__DIR__ . '/../../public/api/magnets.json', 0770);
|
||||
}
|
||||
}
|
||||
|
||||
@ -404,6 +410,8 @@ try
|
||||
{
|
||||
fwrite($handle, json_encode($magnetDownloads));
|
||||
fclose($handle);
|
||||
|
||||
chmod(__DIR__ . '/../../public/api/magnetDownloads.json', 0770);
|
||||
}
|
||||
}
|
||||
|
||||
@ -436,6 +444,8 @@ try
|
||||
{
|
||||
fwrite($handle, json_encode($magnetComments));
|
||||
fclose($handle);
|
||||
|
||||
chmod(__DIR__ . '/../../public/api/magnetComments.json', 0770);
|
||||
}
|
||||
}
|
||||
|
||||
@ -466,6 +476,8 @@ try
|
||||
{
|
||||
fwrite($handle, json_encode($magnetStars));
|
||||
fclose($handle);
|
||||
|
||||
chmod(__DIR__ . '/../../public/api/magnetStars.json', 0770);
|
||||
}
|
||||
}
|
||||
|
||||
@ -495,6 +507,8 @@ try
|
||||
{
|
||||
fwrite($handle, json_encode($magnetViews));
|
||||
fclose($handle);
|
||||
|
||||
chmod(__DIR__ . '/../../public/api/magnetViews.json', 0770);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user