diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-05-09 15:17:13 -0300 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-05-09 15:17:13 -0300 |
commit | 2ea3140d070a5dd8f5306a2c1ba448f0b5842a12 (patch) | |
tree | 7535e46c638ed44a37dca150442bff6f9a20b070 /provisioning | |
parent | 12c0759686f41de6f9c820334e57193309707b3b (diff) |
Add rule to change to vagrant folder on login
Diffstat (limited to 'provisioning')
-rwxr-xr-x | provisioning/modules/pixelated/files/activate_custom_node_modules.sh | 3 | ||||
-rw-r--r-- | provisioning/modules/pixelated/manifests/source/install_useragent.pp | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/provisioning/modules/pixelated/files/activate_custom_node_modules.sh b/provisioning/modules/pixelated/files/activate_custom_node_modules.sh index 5ad419e3..d63b8d35 100755 --- a/provisioning/modules/pixelated/files/activate_custom_node_modules.sh +++ b/provisioning/modules/pixelated/files/activate_custom_node_modules.sh @@ -35,6 +35,3 @@ echo "running python setup" ./go setuppy > /dev/null echo "running js setup" ./go setupjs > /dev/null - - -cd /vagrant diff --git a/provisioning/modules/pixelated/manifests/source/install_useragent.pp b/provisioning/modules/pixelated/manifests/source/install_useragent.pp index 0b19eeb3..8afbac0c 100644 --- a/provisioning/modules/pixelated/manifests/source/install_useragent.pp +++ b/provisioning/modules/pixelated/manifests/source/install_useragent.pp @@ -31,7 +31,12 @@ class pixelated::source::install_useragent { } exec { 'add_custom_node_path_to_bashrc': command => "/bin/bash -c 'echo NODE_PATH=/home/vagrant/boxed_node_modules/node_modules/ >> /home/vagrant/.bashrc'", - unless => "/bin/grep NODE_PATH /home/vagrant/.bashrc", + unless => '/bin/grep NODE_PATH /home/vagrant/.bashrc', + user => 'vagrant', + } + exec { 'add_rule_to_change_to_vagrant_folder_on_login': + command => "/bin/echo 'cd /vagrant' >> /home/vagrant/.bashrc", + unless => "/bin/grep 'cd /vagrant' /home/vagrant/.bashrc", user => 'vagrant', } } |