This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 2907e6d2 Passenger status output format has changed
2907e6d2 is described below

commit 2907e6d20d82acc9f379d57480be297c1aa30a7e
Author: Sebb <[email protected]>
AuthorDate: Fri Jul 5 18:09:35 2024 +0100

    Passenger status output format has changed
---
 www/status/passenger.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/status/passenger.cgi b/www/status/passenger.cgi
index d4a4ac6c..33821c74 100755
--- a/www/status/passenger.cgi
+++ b/www/status/passenger.cgi
@@ -76,7 +76,8 @@ _html do
       content.split("\n\n").each do |app|
         _pre app
 
-        path = app[/\A(\/.*):/, 1]
+        # e.g. /x1/srv/whimsy/www/roster (production):
+        path = app[/\A(\/\S+)/, 1]
         if user.asf_chair_or_member?
           restart = File.join(path, "tmp/restart.txt") if path
           if restart and File.exist? restart

Reply via email to