Last active
December 15, 2015 07:19
-
-
Save markllama/5222431 to your computer and use it in GitHub Desktop.
Tweak RPM and gem requirements for OpenShift Origin broker on Fedora 18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# After the OpenShift broker is installed on Fedora 18, there are some | |
# remaining tasks before you can actually start configuring it. | |
# | |
# These are primarily due to gems or packages that have not yet made it into the | |
# Fedora 18 distribution and updates. | |
# | |
# This is as of 2013-03-22, expect changes. | |
# | |
SUDO=sudo | |
# | |
# It appears that rubygem-mongoid is not yet available as an RPM from Fedora 18 | |
# | |
if ! (gem list --local | grep -q mongoid) | |
then | |
echo "Missing rubygem - mongoid: installing" | |
${SUDO} gem install mongoid | |
fi | |
# | |
# The Gemfile for the broker has specific version requirements which don't seem | |
# to match what's available by RPM | |
# | |
echo "removing version requirements for gems" | |
${SUDO} sed -i -f - <<EOF /var/www/openshift/broker/Gemfile | |
/parseconfig/s/,.*// | |
/minitest/s/,.*// | |
/rest-client/s/,.*// | |
/mocha/s/,.*// | |
/rake/s/,.*// | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment