Browse Source

Add init command

umbrel-beta
Luke Childs 5 years ago
parent
commit
769f9056cd
  1. 1
      .gitignore
  2. 3
      Vagrantfile
  3. 12
      umbrel-dev

1
.gitignore

@ -1 +1,2 @@
.vagrant
getumbrel

3
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

12
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

Loading…
Cancel
Save