fixed initialization bugs

1. Added the Vintage Story Nest to the NestSeeder
2. Moved the vintage story egg from OtherGames to vintage-story (Note: OtherGames should be renamed to other-games to follow naming conventions)
3. fixed incorrect rustic download link in provision.sh
This commit is contained in:
Tyrthurey
2025-12-29 23:31:08 +02:00
parent c206246ca4
commit 55ec1fa47d
3 changed files with 18 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ class NestSeeder extends Seeder
$this->createSourceEngineNest(array_get($items, 'Source Engine'));
$this->createVoiceServersNest(array_get($items, 'Voice Servers'));
$this->createRustNest(array_get($items, 'Rust'));
$this->createVintageStoryNest(array_get($items, 'Vintage Story'));
}
/**
@@ -105,4 +106,20 @@ class NestSeeder extends Seeder
], 'support@pterodactyl.io');
}
}
/**
* Create the Vintage Story nest to be used later on.
*
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
*/
private function createVintageStoryNest(?array $nest = null)
{
if (is_null($nest)) {
$this->creationService->handle([
'name' => 'Vintage Story',
'description' => 'Vintage Story - An uncompromising wilderness survival sandbox game.',
], 'support@pterodactyl.io');
}
}
}

View File

@@ -291,7 +291,7 @@ log Installing rustic for Elytra backups
if [ ! -f /usr/local/bin/rustic ]; then
apt-get install -y libfuse2
ARCH=$(uname -m); [[ $ARCH == x86_64 ]] && ARCH=x86_64 || ARCH=aarch64
curl -fsSL -o /tmp/rustic.tar.gz "https://github.com/rustic-rs/rustic/releases/latest/download/rustic-v0.10.0-${ARCH}-unknown-linux-musl.tar.gz"
curl -fsSL -o /tmp/rustic.tar.gz "https://github.com/rustic-rs/rustic/releases/download/v0.10.0/rustic-v0.10.0-${ARCH}-unknown-linux-musl.tar.gz"
tar -xf /tmp/rustic.tar.gz -C /tmp rustic
mv /tmp/rustic /usr/local/bin/
chmod +x /usr/local/bin/rustic