Revision 717c40e0
Added by Dominic Cleal over 9 years ago
debian/wheezy/foreman/foreman-console.postinst | ||
---|---|---|
# 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
|
||
cd /usr/share/foreman
|
||
if [ ! -z "${DEBUG}" ]; then
|
||
bundle update --local
|
||
$BUNDLE update --local
|
||
else
|
||
bundle update --local 2>&1 >> $LOGFILE
|
||
$BUNDLE update --local 2>&1 >> $LOGFILE
|
||
fi
|
||
|
||
# Own all the core files
|
Also available in: Unified diff
fixes #7970 - add and prefer /usr/bin/foreman-ruby symlink
Use foreman-ruby for bundle calls especially, so it allows the default Ruby
to vary separately from Foreman's. Set foreman-ruby to ruby1.9.1 explicitly
on Ubuntu 12.04.