Skip to content

Instantly share code, notes, and snippets.

@MosesMendoza
Created October 3, 2012 20:16
Show Gist options
  • Save MosesMendoza/3829562 to your computer and use it in GitHub Desktop.
Save MosesMendoza/3829562 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
case "$1" in
configure)
if grep -q 'Ubuntu 8.04' /etc/issue ; then
SITELIBDIR=$(ruby -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")
mkdir -p $SITELIBDIR || :
ln -s /usr/lib/ruby/vendor_ruby/mcollective $SITELIBDIR/ || :
ln -s /usr/lib/ruby/vendor_ruby/mcollective.rb $SITELIBDIR/ || :
fi
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment