Skip to content

Commit eb3ffe1

Browse files
author
Anthony Somerset
committed
better postgresql support for custom schema on web
1 parent 8da8100 commit eb3ffe1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/web/zabbix.conf.php.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ $DB['DATABASE'] = '<%= @database_name %>';
1515
$DB['USER'] = '<%= @database_user %>';
1616
$DB['PASSWORD'] = '<%= @database_password %>';
1717

18-
// SCHEMA is relevant only for IBM_DB2 database
18+
// SCHEMA is relevant only for IBM_DB2 and PostgreSQL database
19+
<% if @database_schema -%>
20+
$DB['SCHEMA'] = '<%= @database_schema %>';
21+
<% else -%>
1922
$DB['SCHEMA'] = '';
23+
<% end -%>
2024

2125
$ZBX_SERVER = '<%= @zabbix_server %>';
2226
$ZBX_SERVER_PORT = '<%= @zabbix_listenport %>';

0 commit comments

Comments
 (0)