directory fix
This commit is contained in:
@@ -7,6 +7,9 @@ if [[ "$EUID" -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#set script directory
|
||||||
|
ScriptDir="$(dirname "$(realpath "$0")")"
|
||||||
|
|
||||||
# recursive replace function
|
# recursive replace function
|
||||||
replace_string_recursive() {
|
replace_string_recursive() {
|
||||||
local DIRECTORY="$1"
|
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
|
curl "https://dockge.kuma.pet/compose.yaml?port=5001&stacksPath=%2Fopt%2Fstacks" --output compose.yaml
|
||||||
|
|
||||||
# write configuration to compose files
|
# write configuration to compose files
|
||||||
cp -r stacks /opt
|
cp -r $scriptdir/stacks /opt
|
||||||
cp -r scripts /opt
|
cp -r $scriptdir/scripts /opt
|
||||||
chmod -R 775 /opt/stacks
|
chmod -R 775 /opt/stacks
|
||||||
|
|
||||||
#adminemail
|
#adminemail
|
||||||
|
|||||||
Reference in New Issue
Block a user