mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:05:55 +00:00
self-update: clarify is_writable check on work_dir
This commit is contained in:
@@ -15,9 +15,12 @@
|
|||||||
|
|
||||||
switch ($step) {
|
switch ($step) {
|
||||||
case 0:
|
case 0:
|
||||||
|
array_push($log, "Work directory: $work_dir");
|
||||||
|
|
||||||
if (!is_writable($work_dir) && !is_writable("$parent_dir")) {
|
if (!is_writable($work_dir) && !is_writable("$parent_dir")) {
|
||||||
array_push($log, "Both current and parent directories should be writable as current user.");
|
$user = posix_getpwuid(posix_geteuid());
|
||||||
|
$user = $user["name"];
|
||||||
|
array_push($log, "Both tt-rss and parent directories should be writable as current user ($user).");
|
||||||
$stop = true; break;
|
$stop = true; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user