post_install() {
  set -e
  cd /usr/share/beef
  rm -f Gemfile.lock
  bundle config build.nokogiri --use-system-libraries
  bundle config set --local path 'vendor/bundle'
  bundle install
  bundle update
}

post_upgrade() {
  post_install
}

post_remove() {
  rm -rf /usr/share/beef
}

