]> git.wh0rd.org Git - tt-rss.git/commitdiff
self-update: clarify is_writable check on work_dir
authorAndrew Dolgov <fox@fakecake.org>
Thu, 23 Aug 2012 19:00:48 +0000 (23:00 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Thu, 23 Aug 2012 19:00:48 +0000 (23:00 +0400)
include/update_self.php

index 1a4b0a34409938f23bb3b0247adfe3571c8feefd..cb3482ab05ecfa1976211629cb142abf8b1d7000 100644 (file)
 
                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;
                        }