From 6e6bc56d6b8af244926d6c94b5540adee2d439cc Mon Sep 17 00:00:00 2001 From: "Urko." Date: Mon, 25 Dec 2023 11:49:20 +0100 Subject: [PATCH] fix: deploy script --- deploy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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