Project

General

Profile

« Previous | Next » 

Revision c97ef76c

Added by Greg Sutcliffe about 10 years ago

Use bundle install or bundle updtae as required for plugins

View differences:

plugins/ruby-foreman-bootdisk/debian/postinst
. /usr/share/debconf/confmodule
LOGFILE='/var/log/foreman-install.log'
PLUGIN='foreman_bootdisk'
# 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_bootdisk
if bundle show $PLUGIN >/dev/null 2>&1; then
bundle update $PLUGIN
else
bundle install
fi
else
bundle update foreman_bootdisk 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
# DB migrate/seed after install

Also available in: Unified diff