Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 3d79e99

Browse files
committed
general fixes
1 parent a4f5594 commit 3d79e99

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

auto-install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ cd /var/www/pterodactyl
2727
yarn
2828
yarn build:production
2929

30+
# Assign permissions
31+
chown -R www-data:www-data /var/www/pterodactyl/*
32+
3033
# Exit script
3134
clear
3235
php artisan up
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Files;
4+
5+
use Pterodactyl\Models\Permission;
6+
use Pterodactyl\Contracts\Http\ClientPermissionsRequest;
7+
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
8+
9+
class PullFileRequest extends ClientApiRequest implements ClientPermissionsRequest
10+
{
11+
public function permission(): string
12+
{
13+
return Permission::ACTION_FILE_CREATE;
14+
}
15+
16+
/**
17+
* @return string[]
18+
*/
19+
public function rules(): array
20+
{
21+
return [
22+
'url' => 'sometimes|string|url',
23+
'directory' => 'nullable|string',
24+
'filename' => 'nullable|string',
25+
'use_header' => 'boolean',
26+
'foreground' => 'boolean',
27+
];
28+
}
29+
}

code/resources/scripts/api/server/plugins/getPlugin.ts renamed to code/resources/scripts/api/server/plugins/getPlugins.ts

File renamed without changes.

0 commit comments

Comments
 (0)