diff options
author | Andrew Dolgov <[email protected]> | 2012-08-23 23:00:48 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-23 23:00:48 +0400 |
commit | caeee35fd5b9f240818144f2ddc4cb09fa6675e5 (patch) | |
tree | 2a471410e6fae94ff58c6a55caf8edd97fe6d6f9 /include | |
parent | 808dd053c6b14822b544ac0e76292f7d74445ec2 (diff) |
self-update: clarify is_writable check on work_dir
Diffstat (limited to 'include')
-rw-r--r-- | include/update_self.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/update_self.php b/include/update_self.php index 1a4b0a344..cb3482ab0 100644 --- a/include/update_self.php +++ b/include/update_self.php @@ -15,9 +15,12 @@ switch ($step) { case 0: + array_push($log, "Work directory: $work_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; } |