diff options
-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', } } |