diff --git a/resources/postinst.sh b/resources/postinst.sh index b598c5f..5a47f67 100755 --- a/resources/postinst.sh +++ b/resources/postinst.sh @@ -1,4 +1,5 @@ #!/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 @@ -6,6 +7,6 @@ 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."