I have a file export.shthat has this content:
export JAVA_HOME="/opt/hadoop/jdk1.7.0_51"
export PATH=$JAVA_HOME/bin:$PATH
I have another shell script ( setup.sh) in which I use export.sh:
source /vagrant/export.sh
setup.sh called during preparation:
master.vm.provision :shell, path: "scripts/setup.sh"
But when the machine boots up and I try (for example):
which java
he shows a blank ...
How to enable added export of routes in Vagrant?
source
share