diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-05-24 16:21:24 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-06-03 16:00:51 +0100 |
commit | 11948df37d6d49be4a2b635d39a63e55e2e97427 (patch) | |
tree | 38eaa70616e037c8bbf60d38d76380a3837ad228 /bin | |
parent | 8a8390ec95a1e6106fde36395a388e2d6af8fed7 (diff) |
Add GEM stuff to user's .bashrc file.
This is so that the user can run bin/make_css later on without issue.
Fixes #422.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/install-as-user | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/install-as-user b/bin/install-as-user index b9dfa3973..1d6cce982 100755 --- a/bin/install-as-user +++ b/bin/install-as-user @@ -67,6 +67,16 @@ mkdir -p "$GEM_HOME" export GEM_PATH= export PATH="$GEM_HOME/bin:$PATH" +if ! grep -q 'Set up local gem directory for FixMyStreet' $HOME/.bashrc; then + cat >>$HOME/.bashrc <<EOBRC + +# Set up local gem directory for FixMyStreet +export GEM_HOME="$DIRECTORY/gems" +export GEM_PATH= +export PATH="\$GEM_HOME/bin:\$PATH" +EOBRC +fi + gem install --no-ri --no-rdoc compass # Use compass to generate the CSS, if it doesn't seem to already |