mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
The new puppet.conf file has to be moved into place manually. (imported from commit 253d9a95386dae8c803a998ce2dc7e8be40c880a)
9 lines
267 B
Puppet
9 lines
267 B
Puppet
define common::append_if_no_such_line($file, $line, $refreshonly = 'false') {
|
|
exec { "/bin/echo '$line' >> '$file'":
|
|
unless => "/bin/grep -Fxqe '$line' '$file'",
|
|
path => "/bin",
|
|
refreshonly => $refreshonly,
|
|
subscribe => File[$file],
|
|
}
|
|
}
|