Mayank Chhabra
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
18 additions and
8 deletions
-
README.md
-
scripts/configure
-
scripts/umbrel-os/boot
|
|
@ -83,14 +83,14 @@ curl -L https://github.com/getumbrel/umbrel/archive/v0.1.5-beta.tar.gz | tar -xz |
|
|
|
### Step 2. Configure |
|
|
|
|
|
|
|
```bash |
|
|
|
# To run Umbrel on mainnet, run: |
|
|
|
./configure-box.sh |
|
|
|
# To configure Umbrel for mainnet, run: |
|
|
|
./scripts/configure |
|
|
|
|
|
|
|
# For testnet, run: |
|
|
|
TESTNET=1 ./configure-box.sh |
|
|
|
TESTNET=1 ./scripts/configure |
|
|
|
|
|
|
|
# For regtest, run: |
|
|
|
REGTEST=1 ./configure-box.sh |
|
|
|
REGTEST=1 ./scripts/configure |
|
|
|
``` |
|
|
|
|
|
|
|
### Step 3. Run Umbrel |
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
#!/bin/bash -e |
|
|
|
#!/usr/bin/env bash |
|
|
|
set -e |
|
|
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
|
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
|
@ -27,6 +28,15 @@ check_dependencies () { |
|
|
|
|
|
|
|
check_dependencies wget docker docker-compose |
|
|
|
|
|
|
|
UMBREL_ROOT="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.." |
|
|
|
|
|
|
|
if [[ ! -d "$UMBREL_ROOT" ]]; then |
|
|
|
echo "Root dir does not exist '$UMBREL_ROOT'" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
cd "$UMBREL_ROOT" |
|
|
|
|
|
|
|
echo "Start box configuration" |
|
|
|
echo "Installing RPCAuth.py and configuring secrets" |
|
|
|
cd bin/ |
|
|
@ -107,5 +117,5 @@ rm -fr README.md |
|
|
|
rm -fr NETWORKING.md |
|
|
|
rm -fr CONTRIBUTING.md |
|
|
|
rm -fr LICENSE |
|
|
|
rm -fr configure-box.sh |
|
|
|
|
|
|
|
echo "Box Configuration complete" |
|
|
@ -24,10 +24,10 @@ if [ ! -f "$UMBREL_ROOT"/statuses/disk-partitioned ]; then |
|
|
|
fi |
|
|
|
|
|
|
|
if [ ! -f "$UMBREL_ROOT"/statuses/service-configured ]; then |
|
|
|
if [ -f "$UMBREL_ROOT"/configure-box.sh ]; then |
|
|
|
if [ -f "$UMBREL_ROOT"/scripts/configure ]; then |
|
|
|
echo "Running configuration script" |
|
|
|
cd "$UMBREL_ROOT" |
|
|
|
./configure-box.sh || exit 1 |
|
|
|
./scripts/configure || exit 1 |
|
|
|
# Marking this as done so we don't do configuration again |
|
|
|
touch "$UMBREL_ROOT"/statuses/service-configured |
|
|
|
chown -R umbrel.umbrel "$UMBREL_ROOT"/statuses/service-configured |
|
|
|