Cleanup code in MountController.php
This commit is contained in:
parent
f7520b721b
commit
050075b835
2 changed files with 41 additions and 33 deletions
|
@ -70,6 +70,26 @@ class Mount extends Model
|
|||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* Blacklisted source paths
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
public static $invalidSourcePaths = [
|
||||
'/etc/pterodactyl',
|
||||
'/var/lib/pterodactyl/volumes',
|
||||
'/srv/daemon-data',
|
||||
];
|
||||
|
||||
/**
|
||||
* Blacklisted target paths
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
public static $invalidTargetPaths = [
|
||||
'/home/container',
|
||||
];
|
||||
|
||||
/**
|
||||
* Returns all eggs that have this mount assigned.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue