From dee6349b789f9d9de87b1675136894b06d79dc01 Mon Sep 17 00:00:00 2001 From: purple Date: Fri, 11 Aug 2023 21:54:25 +0200 Subject: [PATCH] Replace folder variable on telemetry.sh and updateAdminCacheReminder.sh --- blueprint.sh | 4 +++- blueprint/lib/updateAdminCacheReminder.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/blueprint.sh b/blueprint.sh index c262abb..93edfca 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -46,8 +46,10 @@ elif [[ $PM_VERSION != "([(pterodactylmarket""_version)])" ]]; then VERSION=$PM_VERSION; fi; -# Fix for Blueprint's bash database to work with docker and custom folder installations. +# Fix for Blueprint's bash database/telemetry/admincachereminder to work with docker and custom folder installations. sed -i "s!&bp.folder&!$FOLDER!g" $FOLDER/.blueprint/lib/db.sh; +sed -i "s!&bp.folder&!$FOLDER!g" $FOLDER/.blueprint/lib/telemetry.sh; +sed -i "s!&bp.folder&!$FOLDER!g" $FOLDER/.blueprint/lib/updateAdminCacheReminder.sh; cd $FOLDER; # Automatically navigate to the Pterodactyl directory when running the script. # Import libraries. diff --git a/blueprint/lib/updateAdminCacheReminder.sh b/blueprint/lib/updateAdminCacheReminder.sh index 24cb5f7..8a447fd 100644 --- a/blueprint/lib/updateAdminCacheReminder.sh +++ b/blueprint/lib/updateAdminCacheReminder.sh @@ -1,6 +1,7 @@ #!/bin/bash updateCacheReminder() { + cd &bp.folder& # Overwrite previous adminCacheReminderHider with the default one. oldClassName=$(cat .blueprint/data/internal/db/randomclassname); newClassName=$RANDOM;