directory fix

This commit is contained in:
2026-03-04 07:21:24 +01:00
parent bdb9042b44
commit 5cc5a11371

View File

@@ -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