diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 20:58:26 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 20:58:26 -0700 |
commit | 78e3c0ade972ce25fb9b3de97a2e6539854ffedd (patch) | |
tree | 0782a886d1ffc1a3d61a0e8fd8c819d7824d3b4e | |
parent | b3d08673e04aaebcba6bd5dd1074d5bf309b2cf4 (diff) |
fix pg replication slave display in status
-rw-r--r-- | httemplate/view/Status.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html index f1060874c..eb7df6846 100644 --- a/httemplate/view/Status.html +++ b/httemplate/view/Status.html @@ -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'} = [ |