Fixed error "Unrecognised escape sequence '\1'" from inetd module.
This commit is contained in:
parent
6f828786eb
commit
3b4040d862
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ define inetd::service($ensure = present) {
|
||||||
openbsd: {
|
openbsd: {
|
||||||
exec { "enable-inetd-${name}":
|
exec { "enable-inetd-${name}":
|
||||||
command => $ensure ? {
|
command => $ensure ? {
|
||||||
"present" => "ruby -pi -e 'sub(/^#${name}(\\s+)/, \"${name}\\\1\")' /etc/inetd.conf",
|
"present" => "ruby -pi -e 'sub(/^#${name}(\\s+)/, \"${name}\\\\1\")' /etc/inetd.conf",
|
||||||
"absent" => "ruby -pi -e 'sub(/^${name}(\\s+)/, \"#${name}\\\1\")' /etc/inetd.conf",
|
"absent" => "ruby -pi -e 'sub(/^${name}(\\s+)/, \"#${name}\\\\1\")' /etc/inetd.conf",
|
||||||
},
|
},
|
||||||
unless => $ensure ? {
|
unless => $ensure ? {
|
||||||
"present" => "egrep '^tftp[[:space:]]' /etc/inetd.conf",
|
"present" => "egrep '^tftp[[:space:]]' /etc/inetd.conf",
|
||||||
|
|
Loading…
Add table
Reference in a new issue