Project

General

Profile

« Previous | Next » 

Revision b111b2d8

Added by Greg Sutcliffe about 10 years ago

default_hostgroup: bump to 2.0.0

View differences:

plugins/ruby-foreman-default-hostgroup/debian/postinst
. /usr/share/debconf/confmodule
LOGFILE='/var/log/foreman-install.log'
PLUGIN='foreman_default_hostgroup'
# if this script aborts with an error dpkg can
# hang if daemons have been started
......
# Update gems
cd /usr/share/foreman
if [ ! -z "${DEBUG}" ]; then
bundle update foreman_default_hostgroup
if bundle show $PLUGIN >/dev/null 2>&1; then
bundle update $PLUGIN
else
bundle install
fi
else
bundle update foreman_default_hostgroup 2>&1 >> $LOGFILE
if bundle show $PLUGIN >/dev/null 2>&1; then
bundle update $PLUGIN 2>&1 >> $LOGFILE
else
bundle install 2>&1 >> $LOGFILE
fi
fi
# Own all the core files

Also available in: Unified diff