From 53a23b8b0fe6c13295b71e3ac67a6c9b70865ea7 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Sun, 12 Aug 2012 18:34:41 +0300 Subject: [PATCH] Fixed escape sequence in ssh::allowgroups --- ssh/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/manifests/init.pp b/ssh/manifests/init.pp index 515e9f5..84daeb8 100644 --- a/ssh/manifests/init.pp +++ b/ssh/manifests/init.pp @@ -178,7 +178,7 @@ class ssh::allowgroups { exec { "ssh-allowgroups-sub": path => "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin", cwd => "/etc/ssh", - command => "ruby -pi -e 'sub(/(AllowGroups).*/, \"\\\1 ${ssh_allowgroups_real}\")' sshd_config", + command => "ruby -pi -e 'sub(/(AllowGroups).*/, \"\\\\1 ${ssh_allowgroups_real}\")' sshd_config", unless => "grep -q '^[^#]*AllowGroups ${ssh_allowgroups_real}' sshd_config", notify => Service["sshd"], }