updater: fix is_writable checking
This commit is contained in:
parent
83b1ddafef
commit
cd4d71b41b
|
@ -42,7 +42,7 @@ class Updater extends Plugin {
|
||||||
case 0:
|
case 0:
|
||||||
array_push($log, "Work directory: $work_dir");
|
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")) {
|
||||||
$user = posix_getpwuid(posix_geteuid());
|
$user = posix_getpwuid(posix_geteuid());
|
||||||
$user = $user["name"];
|
$user = $user["name"];
|
||||||
array_push($log, "Both tt-rss and parent directories should be writable as current user ($user).");
|
array_push($log, "Both tt-rss and parent directories should be writable as current user ($user).");
|
||||||
|
|
Loading…
Reference in New Issue