Revision 5f31bca4
Added by Greg Sutcliffe almost 10 years ago
plugins/ruby-foreman-setup/debian/postinst | ||
---|---|---|
|
||
# Update gems
|
||
cd /usr/share/foreman
|
||
# 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.
|
||
if [ ! -z "${DEBUG}" ]; then
|
||
bundle update nokogiri || true
|
||
if bundle show $PLUGIN >/dev/null 2>&1; then
|
||
bundle update $PLUGIN
|
||
else
|
||
bundle install
|
||
fi
|
||
else
|
||
bundle update nokogiri 2>&1 >> $LOGFILE || true
|
||
if bundle show $PLUGIN >/dev/null 2>&1; then
|
||
bundle update $PLUGIN 2>&1 >> $LOGFILE
|
||
else
|
Also available in: Unified diff
Update nokogiri gem when installing deface-based plugins
deface < 1.0 has a dependency on ~> 1.5.0 which conflicts
with the 1.6.x gem installed by default in core.