foreman-packaging/plugins/ruby-foreman-dhcp-browser/debian/postinst @ 5f31bca4
07cc0734 | Michael Moll | #!/bin/sh
|
|
# postinst script for foreman-*
|
|||
#
|
|||
# see: dh_installdeb(1)
|
|||
if [ ! -z "${DEBUG}" ]; then
|
|||
set -x
|
|||
else
|
|||
set -e
|
|||
fi
|
|||
. /usr/share/debconf/confmodule
|
|||
LOGFILE='/var/log/foreman-install.log'
|
|||
# if this script aborts with an error dpkg can
|
|||
# hang if daemons have been started
|
|||
trap db_stop EXIT
|
|||
# Update gems
|
|||
cd /usr/share/foreman
|
|||
5f31bca4 | Greg Sutcliffe | # Nokogiri causes us pain due to tight dependencies within deface
|
|
# so update it first. We rescue it as trusty will return non-zero if
|
|||
# nokogiri isn't in the Gemfile.
|
|||
07cc0734 | Michael Moll | if [ ! -z "${DEBUG}" ]; then
|
|
5f31bca4 | Greg Sutcliffe | bundle update nokogiri || true
|
|
07cc0734 | Michael Moll | bundle update foreman_dhcp_browser
|
|
else
|
|||
5f31bca4 | Greg Sutcliffe | bundle update nokogiri 2>&1 >> $LOGFILE || true
|
|
07cc0734 | Michael Moll | bundle update foreman_dhcp_browser 2>&1 >> $LOGFILE
|
|
fi
|
|||
# Own all the core files
|
|||
chown -Rf foreman:foreman '/usr/share/foreman'
|
|||
#DEBHELPER#
|
|||
exit 0
|