diff --git a/deploy.sh b/deploy.sh index 48f6735..80e23c3 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,5 +1,7 @@ #!/bin/bash +cd /var/www/owncloud + # Check if .env file exists if [ ! -f .env ]; then echo "Error: .env file not found in /var/www/owncloud" @@ -7,8 +9,8 @@ if [ ! -f .env ]; then fi # Create network if it doesn't exist -if ! docker network ls | grep -q 'web '; then - docker network create --driver=overlay web +if ! docker network ls | grep -q 'ocis-net'; then + docker network create --driver=overlay ocis-net fi # Automatically export all variables from .env file