Prevent upstart export from deleting similarly named upstart files

This commit is contained in:
Andy Morris
2013-01-25 00:24:04 -06:00
parent ba9167152c
commit 9f3b903085
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class Foreman::Export::Upstart < Foreman::Export::Base
def export
super
Dir["#{location}/#{app}*.conf"].each do |file|
(Dir["#{location}/#{app}-*.conf"] << "#{location}/#{app}.conf").each do |file|
clean file
end