Replace folder variable on telemetry.sh and updateAdminCacheReminder.sh

This commit is contained in:
purple 2023-08-11 21:54:25 +02:00
parent 82cb456dfd
commit dee6349b78
2 changed files with 4 additions and 1 deletions

View file

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

View file

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