Skip to content

Commit

Permalink
Add umbreld scaffolding and implement migration assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jun 14, 2023
1 parent cf22afa commit 0e27aff
Show file tree
Hide file tree
Showing 28 changed files with 2,726 additions and 544 deletions.
10 changes: 2 additions & 8 deletions docker-compose.yml
Expand Up @@ -53,13 +53,11 @@ services:
- ${PWD}/tor/data:/var/lib/tor/
- /var/run/docker.sock:/var/run/docker.sock
- ${DOCKER_BINARY:-/usr/bin/docker}:/usr/bin/docker
- jwt-public-key:/jwt-public-key
- jwt-private-key:/jwt-private-key
environment:
PORT: "3006"
USER_PASSWORD_FILE: "/db/user.json"
JWT_PUBLIC_KEY_FILE: "/jwt-public-key/jwt.pem"
JWT_PRIVATE_KEY_FILE: "/jwt-private-key/jwt.key"
JWT_PUBLIC_KEY_FILE: "/db/jwt.pem"
JWT_PRIVATE_KEY_FILE: "/db/jwt.key"
JWT_EXPIRATION: "3600"
DOCKER_COMPOSE_DIRECTORY: $PWD
UMBREL_SEED_FILE: "/db/umbrel-seed/seed"
Expand Down Expand Up @@ -119,7 +117,3 @@ networks:
driver: default
config:
- subnet: "$NETWORK_IP/16"

volumes:
jwt-public-key:
jwt-private-key:
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
@@ -0,0 +1 @@
{}
7 changes: 7 additions & 0 deletions scripts/start
Expand Up @@ -124,6 +124,13 @@ echo "Starting decoy backup trigger..."
echo
./scripts/backup/decoy-trigger &>> "${UMBREL_LOGS}/backup-decoy-trigger.log" &

if [[ "${@}" != *"--no-start-server"* ]]; then
echo "Starting umbreld..."
echo
pkill --full 'caxa.*umbreld' || true
./bin/umbreld --data-directory "${UMBREL_ROOT}" &>> "${UMBREL_LOGS}/umbreld.log" &
fi

compose_files=()

if [[ "${REMOTE_TOR_ACCESS}" == "true" ]]; then
Expand Down
4 changes: 4 additions & 0 deletions scripts/stop
Expand Up @@ -39,6 +39,10 @@ ps -Af \
| awk '{print $2}' \
| xargs sudo kill 2> /dev/null || true

if [[ "${@}" != *"--no-stop-server"* ]]; then
pkill --full 'caxa.*umbreld' || true
fi

echo "Stopping installed apps..."
echo
"${UMBREL_ROOT}/scripts/app" stop installed
Expand Down
9 changes: 0 additions & 9 deletions scripts/update/.updateignore

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/update/.updateinclude

This file was deleted.

63 changes: 0 additions & 63 deletions scripts/update/00-run.sh

This file was deleted.

177 changes: 0 additions & 177 deletions scripts/update/01-run.sh

This file was deleted.

17 changes: 0 additions & 17 deletions scripts/update/02-run.sh

This file was deleted.

49 changes: 0 additions & 49 deletions scripts/update/03-run.sh

This file was deleted.

0 comments on commit 0e27aff

Please sign in to comment.