From 05e9f12dc482396941a9a3e3f732a7800d30c783 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Fri, 12 Apr 2024 12:52:00 -0400 Subject: [PATCH] Switch default path --- app/Console/Commands/Node/MakeNodeCommand.php | 2 +- app/Models/Mount.php | 4 ++-- database/Factories/NodeFactory.php | 2 +- resources/views/admin/nodes/new.blade.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/Node/MakeNodeCommand.php b/app/Console/Commands/Node/MakeNodeCommand.php index 6c370fa28..4cf36452c 100644 --- a/app/Console/Commands/Node/MakeNodeCommand.php +++ b/app/Console/Commands/Node/MakeNodeCommand.php @@ -60,7 +60,7 @@ class MakeNodeCommand extends Command $data['upload_size'] = $this->option('uploadSize') ?? $this->ask('Enter the maximum filesize upload', '100'); $data['daemonListen'] = $this->option('daemonListeningPort') ?? $this->ask('Enter the daemon listening port', '8080'); $data['daemonSFTP'] = $this->option('daemonSFTPPort') ?? $this->ask('Enter the daemon SFTP listening port', '2022'); - $data['daemonBase'] = $this->option('daemonBase') ?? $this->ask('Enter the base folder', '/var/lib/panel/volumes'); + $data['daemonBase'] = $this->option('daemonBase') ?? $this->ask('Enter the base folder', '/var/lib/pelican/volumes'); $node = $this->creationService->handle($data); $this->line('Successfully created a new node with the name ' . $data['name'] . ' and has an id of ' . $node->id . '.'); diff --git a/app/Models/Mount.php b/app/Models/Mount.php index f372a4989..0e0367293 100644 --- a/app/Models/Mount.php +++ b/app/Models/Mount.php @@ -71,8 +71,8 @@ class Mount extends Model * Blacklisted source paths. */ public static $invalidSourcePaths = [ - '/etc/panel', - '/var/lib/panel/volumes', + '/etc/pelican', + '/var/lib/pelican/volumes', '/srv/daemon-data', ]; diff --git a/database/Factories/NodeFactory.php b/database/Factories/NodeFactory.php index d8a7fff22..c879683bb 100644 --- a/database/Factories/NodeFactory.php +++ b/database/Factories/NodeFactory.php @@ -38,7 +38,7 @@ class NodeFactory extends Factory 'daemon_token' => Crypt::encrypt(Str::random(Node::DAEMON_TOKEN_LENGTH)), 'daemonListen' => 8080, 'daemonSFTP' => 2022, - 'daemonBase' => '/var/lib/panel/volumes', + 'daemonBase' => '/var/lib/pelican/volumes', ]; } } diff --git a/resources/views/admin/nodes/new.blade.php b/resources/views/admin/nodes/new.blade.php index a51bdc189..2bdcaddff 100644 --- a/resources/views/admin/nodes/new.blade.php +++ b/resources/views/admin/nodes/new.blade.php @@ -95,7 +95,7 @@
- +

Enter the directory where server files should be stored. If you use OVH you should check your partition scheme. You may need to use /home/daemon-data to have enough space.