mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-11 01:30:30 +03:00
buildserver: setup env vars using standard script
bash provides a standard file location for a script to be run when the shell starts: /etc/profile.d/ This converts the scattered bits of code for making ~/.bsenv into a single provisioning script to generate /etc/profile.d/bsenv.sh, which gets automatically executed when bash starts
This commit is contained in:
parent
721b3b79a6
commit
e449d2f583
5 changed files with 23 additions and 13 deletions
|
|
@ -373,6 +373,12 @@ if config['apt_package_cache']:
|
|||
""".format(aptcachedir)
|
||||
|
||||
vagrantfile += """
|
||||
|
||||
config.vm.provision "shell" do |shell|
|
||||
shell.path = "setup-env-vars"
|
||||
shell.args = ["/home/vagrant/android-sdk", "/home/vagrant/android-ndk"]
|
||||
end
|
||||
|
||||
config.vm.provision :chef_solo do |chef|
|
||||
chef.cookbooks_path = "cookbooks"
|
||||
chef.log_level = :debug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue