Fixed escape sequence in ssh::allowgroups
This commit is contained in:
parent
53c02f4d14
commit
53a23b8b0f
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class ssh::allowgroups {
|
||||||
exec { "ssh-allowgroups-sub":
|
exec { "ssh-allowgroups-sub":
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
|
||||||
cwd => "/etc/ssh",
|
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",
|
unless => "grep -q '^[^#]*AllowGroups ${ssh_allowgroups_real}' sshd_config",
|
||||||
notify => Service["sshd"],
|
notify => Service["sshd"],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue