fix pg replication slave display in status
authorIvan Kohler <ivan@freeside.biz>
Thu, 4 Jun 2015 03:58:28 +0000 (20:58 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 4 Jun 2015 03:58:28 +0000 (20:58 -0700)
httemplate/view/Status.html

index f106087..eb7df68 100644 (file)
@@ -93,7 +93,7 @@ if ( $db eq 'PostgreSQL' ) {
                 && FS::Record->scalar_sql('SHOW archive_mode') eq 'on';
 
   my $slave = 
-    FS::Record->scalar_sql('SHOW archive_command') =~ / postgres\@([\w\.\-]): /
+    FS::Record->scalar_sql('SHOW archive_command') =~ / postgres\@([\w\.\-]+): /
       ? $1 : '';
 
   $status{'Replication'} = [