From 147f473eeb01227a804d90a89c2ed09f8d7b9f53 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 21 Apr 2017 22:44:56 -0400 Subject: [PATCH] Add back disk limiting! --- app/Http/Controllers/Admin/ServersController.php | 2 +- .../pterodactyl/admin/servers/view/build.blade.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/ServersController.php b/app/Http/Controllers/Admin/ServersController.php index 64b30e163..10c3b7d29 100644 --- a/app/Http/Controllers/Admin/ServersController.php +++ b/app/Http/Controllers/Admin/ServersController.php @@ -436,7 +436,7 @@ class ServersController extends Controller try { $repo->changeBuild($id, $request->intersect([ 'allocation_id', 'add_allocations', 'remove_allocations', - 'memory', 'swap', 'io', 'cpu', + 'memory', 'swap', 'io', 'cpu', 'disk', ])); Alert::success('Server details were successfully updated.')->flash(); diff --git a/resources/themes/pterodactyl/admin/servers/view/build.blade.php b/resources/themes/pterodactyl/admin/servers/view/build.blade.php index 42057ccf2..e8f043363 100644 --- a/resources/themes/pterodactyl/admin/servers/view/build.blade.php +++ b/resources/themes/pterodactyl/admin/servers/view/build.blade.php @@ -91,7 +91,14 @@

Changing this value can have negative effects on all containers on the system. We strongly recommend leaving this value as 500.

- +
+ +
+ + MB +
+

This server will not be allowed to boot if it is using more than this amount of space. If a server goes over this limit while running it will be safely stopped and locked until enough space is available.

+