Skip to content

Commit 3a62c57

Browse files
committed
Merge pull request #7 from kenyon/service-standardoutput-syslog-obsolete
systemd service units: remove obsolete `StandardOutput=syslog`
2 parents 6937a73 + 49555e2 commit 3a62c57

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

resources/puppetlabs/lein-ezbake/template/global/ext/debian/ezbake.service.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,5 @@ ExecStartPost=-<%= action %>
6060
<% end -%>
6161
SuccessExitStatus=143
6262

63-
StandardOutput=syslog
64-
6563
[Install]
6664
WantedBy=multi-user.target

resources/puppetlabs/lein-ezbake/template/global/ext/fpm.rb

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,16 +350,27 @@
350350
shared_opts << "--url http://github.com/openvoxproject"
351351
shared_opts << "--architecture all"
352352

353+
puts "######## Replaces: #{options.replaces}"
353354
options.replaces.each do |pkg, version|
354355
if options.output_type == 'rpm'
355-
fpm_opts << "--replaces '#{pkg} <= #{version}-1'"
356-
fpm_opts << "--conflicts '#{pkg} <= #{version}-1'"
356+
val = if version.nil? || version.empty?
357+
"'#{pkg}'"
358+
else
359+
"'#{pkg} <= #{version}-1'"
360+
end
361+
fpm_opts << "--replaces #{val}"
362+
fpm_opts << "--conflicts #{val}"
357363
elsif options.output_type == 'deb'
358364
# why debian, why.
359-
fpm_opts << "--replaces '#{pkg} (<< #{version}-1openvox1)'"
360-
fpm_opts << "--conflicts '#{pkg} (<< #{version}-1openvox1)'"
361-
fpm_opts << "--replaces '#{pkg} (<< #{version}-1#{options.dist})'"
362-
fpm_opts << "--conflicts '#{pkg} (<< #{version}-1#{options.dist})'"
365+
if version.nil? || version.empty?
366+
fpm_opts << "--replaces '#{pkg}'"
367+
fpm_opts << "--conflicts '#{pkg}'"
368+
else
369+
fpm_opts << "--replaces '#{pkg} (<< #{version}-1openvox1)'"
370+
fpm_opts << "--conflicts '#{pkg} (<< #{version}-1openvox1)'"
371+
fpm_opts << "--replaces '#{pkg} (<< #{version}-1#{options.dist})'"
372+
fpm_opts << "--conflicts '#{pkg} (<< #{version}-1#{options.dist})'"
373+
end
363374
end
364375
end
365376

resources/puppetlabs/lein-ezbake/template/global/ext/redhat/ezbake.service.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,5 @@ ExecStartPost=-<%= action %>
6060
<% end -%>
6161
SuccessExitStatus=143
6262

63-
StandardOutput=syslog
64-
6563
[Install]
6664
WantedBy=multi-user.target

0 commit comments

Comments
 (0)