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

More build process fixes #152

Merged
merged 1 commit into from
Aug 30, 2020
Merged
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
More build process fixes
  • Loading branch information
dhollinger committed Aug 30, 2020
commit 0a6b5a9b61f619e48fbe2b70aed7073789196b77
3 changes: 2 additions & 1 deletion resources/postinst.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
export WEBHOOK_CONFDIR=/etc/voxpupuli/webhook.yaml
export RACK_ENV=production
export RUBYLIB=/opt/voxpupuli/webhook/lib/ruby:/opt/voxpupuli/webhook
export GEM_HOME=/opt/voxpupuli/webhook/lib/ruby/gems/2.6.0
export GEM_PATH=$GEM_HOME
export LD_PATH=/opt/voxpupuli/webhook/lib
export PATH=/opt/voxpupuli/webhook/bin:$PATH

cd /opt/voxpupuli/webhook && bin/bundle install --with default > /dev/null 2>&1 && bin/bundle exec rake db:migrate > /dev/null 2>&1
cd /opt/voxpupuli/webhook && bin/bundle install --with default --quiet && bin/bundle exec rake db:migrate --quiet

echo "Redis is required to start Puppet Webhook. Please install and start Redis first."