From a9022feae4617c5cc3a39ba9e4c39aec0a01b392 Mon Sep 17 00:00:00 2001 From: Felix Imobersteg Date: Sun, 27 Dec 2015 17:46:26 +0100 Subject: [PATCH 1/2] feat(cd-startdir): change to startdir --- Vagrantfile | 3 ++- scripts/base.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 513807f0..e6271b7f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -14,6 +14,7 @@ github_pat = "" # Server Configuration hostname = "vaprobash.dev" +start_dir = "/vagrant" # Set a local private network IP address. # See http://en.wikipedia.org/wiki/Private_network for explanation @@ -192,7 +193,7 @@ Vagrant.configure("2") do |config| ########## # Provision Base Packages - config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap, server_timezone] + config.vm.provision "shell", path: "./scripts/base.sh", args: [github_url, server_swap, server_timezone, start_dir] # optimize base box config.vm.provision "shell", path: "#{github_url}/scripts/base_box_optimizations.sh", privileged: true diff --git a/scripts/base.sh b/scripts/base.sh index 803ac059..88c3cab2 100644 --- a/scripts/base.sh +++ b/scripts/base.sh @@ -81,3 +81,6 @@ shopt -u nocasematch # Enable cachefilesd echo "RUN=yes" > /etc/default/cachefilesd + +# Set start directory +echo "cd $4" >> /home/vagrant/.bashrc From e3997b5df68c58fad5f998bbcb17196a22c4377c Mon Sep 17 00:00:00 2001 From: Felix Imobersteg Date: Sun, 27 Dec 2015 17:55:25 +0100 Subject: [PATCH 2/2] fix(base): fix base.sh url --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index e6271b7f..4194a97c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -193,7 +193,7 @@ Vagrant.configure("2") do |config| ########## # Provision Base Packages - config.vm.provision "shell", path: "./scripts/base.sh", args: [github_url, server_swap, server_timezone, start_dir] + config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap, server_timezone, start_dir] # optimize base box config.vm.provision "shell", path: "#{github_url}/scripts/base_box_optimizations.sh", privileged: true