Replace folder variable on telemetry.sh and updateAdminCacheReminder.sh
This commit is contained in:
parent
82cb456dfd
commit
dee6349b78
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue