summaryrefslogtreecommitdiff
path: root/net/foreman-proxy/files/patch-extra-migrate_settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'net/foreman-proxy/files/patch-extra-migrate_settings.rb')
-rw-r--r--net/foreman-proxy/files/patch-extra-migrate_settings.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/foreman-proxy/files/patch-extra-migrate_settings.rb b/net/foreman-proxy/files/patch-extra-migrate_settings.rb
new file mode 100644
index 000000000000..74b6d55263bd
--- /dev/null
+++ b/net/foreman-proxy/files/patch-extra-migrate_settings.rb
@@ -0,0 +1,11 @@
+--- extra/migrate_settings.rb.orig 2014-09-27 19:07:54.618974064 +0200
++++ extra/migrate_settings.rb 2014-09-27 19:08:28.098972710 +0200
+@@ -96,7 +96,7 @@
+
+ # When running as a script
+ if __FILE__ == $0 then
+- orig_file = ARGV[0] || '/etc/foreman-proxy/settings.yml'
++ orig_file = ARGV[0] || '%%PREFIX%%/etc/foreman-proxy/settings.yml'
+ data = YAML.load_file(orig_file)
+
+ output,unknown = migrate(data.dup)