mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
installers based on puppet modules. WWW: https://github.com/theforeman/kafo PR: ports/187776 Submitted by: Michael Moll <kvedulv at kvedulv.de>
13 lines
676 B
Text
13 lines
676 B
Text
--- bin/kafofy.orig 2014-03-19 16:50:00.000000000 +0100
|
|
+++ bin/kafofy 2014-03-19 16:50:13.000000000 +0100
|
|
@@ -48,8 +48,8 @@
|
|
File.chmod 0600, options[:config_file]
|
|
FileUtils.cp('config/kafo.yaml.example', options[:config_file])
|
|
if options[:answer_file]
|
|
- `sed -i 's/^# :answer_file.*$/:answer_file: #{options[:answer_file].gsub('/', '\/')}/' #{options[:config_file]}`
|
|
- `sed -i 's/^# :name.*$/:name: #{options[:name]}/' #{options[:config_file]}`
|
|
+ `gsed -i 's/^# :answer_file.*$/:answer_file: #{options[:answer_file].gsub('/', '\/')}/' #{options[:config_file]}`
|
|
+ `gsed -i 's/^# :name.*$/:name: #{options[:name]}/' #{options[:config_file]}`
|
|
end
|
|
end
|
|
|