I'm trying to provision a vm with some alias and keep getting permision denied, wondering what the proper way of doing this is:
end of Vagrant file (this works): config.vm.provision :shell, :path => "provision.sh"
in provision.sh: echo "alias alias1=\"some command\"" >> .bashrc
error: /tmp/vagrant-shell: line 6: .bashrc: Read-only file system
this ended up being a coreOS issue (I think it has to do with it's read only file system or something like that, I should have mentioned it in the question), I ended up using Ubuntu for my VM (I'm only using the VM to run Docker) and the above command in your comment/my original question ended up working.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With