From 2c7da66570999dcd21f11f976dc6ec27d820f45c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 4 Oct 2024 19:28:06 -0700 Subject: Use @ when accessing variables in templates Access without the @ symbol is the older method and is discouraged. --- modules/postgresql/templates/pg_hba.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/postgresql') diff --git a/modules/postgresql/templates/pg_hba.conf b/modules/postgresql/templates/pg_hba.conf index e4232a4e..a1da9c10 100644 --- a/modules/postgresql/templates/pg_hba.conf +++ b/modules/postgresql/templates/pg_hba.conf @@ -79,7 +79,7 @@ <%- for line in @conf_lines -%> -<%= line %> +<%= @line %> <%- end -%> @@ -92,10 +92,10 @@ # fetch it for i in db %> -host <%= i %> <%= i %> 127.0.0.1/32 md5 -host <%= i %> <%= i %> ::1/128 md5 -hostssl <%= i %> <%= i %> <%= ipaddress %>/32 md5 -hostssl <%= i %> <%= i %> 2a02:2178:2:7::2/128 md5 +host <%= @i %> <%= @i %> 127.0.0.1/32 md5 +host <%= @i %> <%= @i %> ::1/128 md5 +hostssl <%= @i %> <%= @i %> <%= @ipaddress %>/32 md5 +hostssl <%= @i %> <%= @i %> 2a02:2178:2:7::2/128 md5 <% end %> @@ -104,12 +104,12 @@ end lang = ['en','de'] for l in lang %> -host phpbb_<%= l %> phpbb 127.0.0.1/32 md5 -host phpbb_<%= l %> phpbb ::1/128 md5 -hostssl phpbb_<%= l %> phpbb <%= ipaddress %>/32 md5 -hostssl phpbb_<%= l %> phpbb 2a02:2178:2:7::2/128 md5 +host phpbb_<%= @l %> phpbb 127.0.0.1/32 md5 +host phpbb_<%= @l %> phpbb ::1/128 md5 +hostssl phpbb_<%= @l %> phpbb <%= @ipaddress %>/32 md5 +hostssl phpbb_<%= @l %> phpbb 2a02:2178:2:7::2/128 md5 # temporary, for the forum on friteuse vm -hostssl phpbb_<%= l %> phpbb 192.168.122.0/24 md5 +hostssl phpbb_<%= @l %> phpbb 192.168.122.0/24 md5 <% end %> -- cgit v1.2.1