Project

General

Profile

« Previous | Next » 

Revision fe2f0fae

Added by Dominic Cleal over 9 years ago

Add missing postinst files for foreman-gce subpackages

View differences:

debian/precise/foreman/foreman-gce.postinst
#!/bin/sh
# postinst script for foreman-*
#
# see: dh_installdeb(1)
[ -n "${DEBUG}" ] && set -x
set -e
. /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
BUNDLE=bundle
[ -h /usr/bin/foreman-ruby ] && BUNDLE="/usr/bin/foreman-ruby /usr/bin/bundle"
# Update gems
export HOME=/usr/share/foreman
cd /usr/share/foreman
if [ ! -z "${DEBUG}" ]; then
$BUNDLE update --local
else
$BUNDLE update --local 2>&1 >> $LOGFILE
fi
# Own all the core files
chown -Rf foreman:foreman '/usr/share/foreman'
#DEBHELPER#
exit 0
debian/trusty/foreman/foreman-gce.postinst
#!/bin/sh
# postinst script for foreman-*
#
# see: dh_installdeb(1)
[ -n "${DEBUG}" ] && set -x
set -e
. /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
BUNDLE=bundle
[ -h /usr/bin/foreman-ruby ] && BUNDLE="/usr/bin/foreman-ruby /usr/bin/bundle"
# Update gems
export HOME=/usr/share/foreman
cd /usr/share/foreman
if [ ! -z "${DEBUG}" ]; then
$BUNDLE update --local
else
$BUNDLE update --local 2>&1 >> $LOGFILE
fi
# Own all the core files
chown -Rf foreman:foreman '/usr/share/foreman'
#DEBHELPER#
exit 0
debian/wheezy/foreman/foreman-gce.postinst
#!/bin/sh
# postinst script for foreman-*
#
# see: dh_installdeb(1)
[ -n "${DEBUG}" ] && set -x
set -e
. /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
BUNDLE=bundle
[ -h /usr/bin/foreman-ruby ] && BUNDLE="/usr/bin/foreman-ruby /usr/bin/bundle"
# Update gems
export HOME=/usr/share/foreman
cd /usr/share/foreman
if [ ! -z "${DEBUG}" ]; then
$BUNDLE update --local
else
$BUNDLE update --local 2>&1 >> $LOGFILE
fi
# Own all the core files
chown -Rf foreman:foreman '/usr/share/foreman'
#DEBHELPER#
exit 0

Also available in: Unified diff