diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 20:58:28 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 20:58:28 -0700 |
commit | f585e97f2a3690339066bbb7fbb6f87f4600cff6 (patch) | |
tree | 95f828afe853c0975f2a1b5bc394a2d3dc67aabd | |
parent | e522b7d9cdd4ce8bc1cd3e3d1d9a56afb470ff93 (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'} = [ |