From 326d57f227d99d8b4c40e025164293e4ae801425 Mon Sep 17 00:00:00 2001 From: Adam Henry Lewenberg <adamhl@stanford.edu> Date: Thu, 4 Feb 2016 10:57:35 -0800 Subject: [PATCH] sshd_config whitespace cleanup --- templates/ssh/sshd_config.erb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/ssh/sshd_config.erb b/templates/ssh/sshd_config.erb index 91c8cd4..115f2c6 100644 --- a/templates/ssh/sshd_config.erb +++ b/templates/ssh/sshd_config.erb @@ -8,25 +8,26 @@ # Split the ports at the commas. ports = @listen_ports.split(',') ports.each do |port| - -%> Port <%= port %> -<% +<%- end -%> -<% +<%- if (@listen_addresses != 'all') # Split the addresses at the commas. addresses = @listen_addresses.split(',') addresses.each do |address| -%> ListenAddress <%= address %> -<% +<%- end - end -%> +<%- + end +-%> # Only support protocol version 2. Protocol 2 -- GitLab