post_install() {
  set -e
  cd /usr/share/hellraiser
  rm -f Gemfile.lock
  bundle-2.7 config build.nokogiri --use-system-libraries
  bundle-2.7 install --path vendor/bundle
  bundle-2.7 exec rake db:migrate
}

post_upgrade() {
  post_install "$@"
}

