From 5cc5a113718d2cd8b9d5cb95a4dab79abd9a75e2 Mon Sep 17 00:00:00 2001 From: SDGDen Date: Wed, 4 Mar 2026 07:21:24 +0100 Subject: [PATCH] directory fix --- deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 3e43896..a9a2944 100644 --- a/deploy.sh +++ b/deploy.sh @@ -7,6 +7,9 @@ if [[ "$EUID" -ne 0 ]]; then exit 1 fi +#set script directory +ScriptDir="$(dirname "$(realpath "$0")")" + # recursive replace function replace_string_recursive() { local DIRECTORY="$1" @@ -106,8 +109,8 @@ cd /opt/dockge curl "https://dockge.kuma.pet/compose.yaml?port=5001&stacksPath=%2Fopt%2Fstacks" --output compose.yaml # write configuration to compose files -cp -r stacks /opt -cp -r scripts /opt +cp -r $scriptdir/stacks /opt +cp -r $scriptdir/scripts /opt chmod -R 775 /opt/stacks #adminemail