diff --git a/.gitignore b/.gitignore index 8000dd9..15d7ec1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .vagrant +getumbrel diff --git a/Vagrantfile b/Vagrantfile index 06a9cbe..8790579 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -22,8 +22,7 @@ Vagrant.configure(2) do |config| # Install Umbrel config.vm.provision "shell", inline: <<-SHELL apt-get install -y git - git clone https://github.com/getumbrel/umbrel.git - cd umbrel + cd /vagrant/getumbrel/umbrel REGTEST=1 ./configure-box.sh sudo chown -R 1000:1000 lnd/ bitcoin/ sed -i 's/umbrel.local/#{config.vm.hostname}.local/g' docker-compose.yml diff --git a/umbrel-dev b/umbrel-dev index f96e47a..d033a32 100755 --- a/umbrel-dev +++ b/umbrel-dev @@ -21,8 +21,20 @@ Commands: EOF } +# Initialize an Umbrel development environment in the working directory +init() { + mkdir getumbrel + git clone https://github.com/getumbrel/umbrel.git getumbrel/umbrel +} + # Show help text if no args set or help is called if [[ -z ${1+x} ]] || [[ "$1" = "help" ]]; then show_help exit 1 fi + +# Init +if [[ "$1" = "init" ]]; then + init + exit +fi