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