Skip to content

Commit

Permalink
Update entry.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Sep 27, 2024
1 parent 0ca004b commit 3df15bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ fi
resp=$(docker inspect "$target")
network=$(echo "$resp" | jq -r '.[0].NetworkSettings.Networks["umbrel_main_network"]')

if [ -z "$network" ]; then
if [ -z "$network" ] || [[ "$network" == "null" ]]; then
if ! docker network connect umbrel_main_network "$target"; then
echo "ERROR: Failed to connect container to network!" && exit 17
fi
fi

mount=$(echo "$resp" | jq -r '.[0].Mounts[] | select(.Destination == "/data").Source')

if [ -z "$mount" ]; then
if [ -z "$mount" ] || [[ "$mount" == "null" ]]; then
echo "ERROR: You did not bind the /data folder!" && exit 18
fi

Expand Down

0 comments on commit 3df15bb

Please sign in to comment.