Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

More build fixes #151

Merged
merged 1 commit into from
Aug 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build/vanagon/components/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@

pkg.add_postinstall_action(%w[install upgrade], 'cd /opt/voxpupuli/webhook && bin/postinst.sh')

pkg.add_postinstall_action('install', 'systemctl enable puppet-webhook puppet-webhook-app puppet-webhook-sidekiq && systemctl restart puppet-webhook')

pkg.add_postremove_action('removal', 'rm -rf /opt/voxpupuli/webhook')
end
2 changes: 1 addition & 1 deletion resources/puppet-webhook-sidekiq.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ After=puppet-webhook.service
EnvironmentFile=-/etc/sysconfig/puppet-webhook
EnvironmentFile=-/etc/default/puppet-webhook
WorkingDirectory=/opt/voxpupuli/webhook
ExecStart=/opt/voxpupuli/webhook/bin/bundle exec sidekiq -C config/sidekiq.yml -r $WorkingDirectory/config/environment.rb
ExecStart=/opt/voxpupuli/webhook/bin/bundle exec sidekiq -C config/sidekiq.yml -r ${WORKDIR}/config/environment.rb
ExecReload=/bin/kill -HUP $PID
KillMode=process

Expand Down