run rvm as user, not as root

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-11-02 17:16:25 +01:00
parent 13fc5aa8f5
commit d97f6794d0
2 changed files with 4 additions and 5 deletions

View file

@ -32,14 +32,12 @@ state_should="$(cat "$__object/parameter/state")"
case "$state_should" in case "$state_should" in
present) present)
cat << DONE cat << DONE
su - "$user" -c "source \"\\\$HOME/.rvm/scripts/rvm\" su - "$user" -c "source \"\\\$HOME/.rvm/scripts/rvm; rvm use $gemset; gem install $gem"\"
rvm use $gemset; gem install $gem"
DONE DONE
;; ;;
absent) absent)
cat << DONE cat << DONE
su - "$user" -c "source \"\\\$HOME/.rvm/scripts/rvm\" su - "$user" -c "source \"\\\$HOME/.rvm/scripts/rvm; rvm use $gemset; gem uninstall $gem"\"
rvm use $gemset; gem uninstall $gem"
DONE DONE
;; ;;
esac esac

View file

@ -7,7 +7,8 @@ Changelog
2.1.0pre6: 2.1.0pre6:
* New Example: Turn remote calls into local calls (used for unittesting) * New Example: Turn remote calls into local calls (used for unittesting)
* Core: Export PYTHONPATH, it's also needed by emulator * Core: Export PYTHONPATH, it's also needed by emulator
* Type __rvm_ruby: Add clean package dependencies * Bugfix Type __rvm_ruby: Add clean package dependencies
* Bugfix Type __rvm_gem: Run rvm as user, not as root
2.1.0pre5: 2012-11-01 2.1.0pre5: 2012-11-01
* Core: First round of tests updated to work with multiple configuration directories * Core: First round of tests updated to work with multiple configuration directories