Switch default path

This commit is contained in:
Lance Pioch 2024-04-12 12:52:00 -04:00
parent 0b1712f653
commit 05e9f12dc4
4 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ class MakeNodeCommand extends Command
$data['upload_size'] = $this->option('uploadSize') ?? $this->ask('Enter the maximum filesize upload', '100'); $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['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['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); $node = $this->creationService->handle($data);
$this->line('Successfully created a new node with the name ' . $data['name'] . ' and has an id of ' . $node->id . '.'); $this->line('Successfully created a new node with the name ' . $data['name'] . ' and has an id of ' . $node->id . '.');

View File

@ -71,8 +71,8 @@ class Mount extends Model
* Blacklisted source paths. * Blacklisted source paths.
*/ */
public static $invalidSourcePaths = [ public static $invalidSourcePaths = [
'/etc/panel', '/etc/pelican',
'/var/lib/panel/volumes', '/var/lib/pelican/volumes',
'/srv/daemon-data', '/srv/daemon-data',
]; ];

View File

@ -38,7 +38,7 @@ class NodeFactory extends Factory
'daemon_token' => Crypt::encrypt(Str::random(Node::DAEMON_TOKEN_LENGTH)), 'daemon_token' => Crypt::encrypt(Str::random(Node::DAEMON_TOKEN_LENGTH)),
'daemonListen' => 8080, 'daemonListen' => 8080,
'daemonSFTP' => 2022, 'daemonSFTP' => 2022,
'daemonBase' => '/var/lib/panel/volumes', 'daemonBase' => '/var/lib/pelican/volumes',
]; ];
} }
} }

View File

@ -95,7 +95,7 @@
<div class="row"> <div class="row">
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="pDaemonBase" class="form-label">Daemon Server File Directory</label> <label for="pDaemonBase" class="form-label">Daemon Server File Directory</label>
<input type="text" name="daemonBase" id="pDaemonBase" class="form-control" value="/var/lib/panel/volumes" /> <input type="text" name="daemonBase" id="pDaemonBase" class="form-control" value="/var/lib/pelican/volumes" />
<p class="text-muted small">Enter the directory where server files should be stored. <strong>If you use OVH you should check your partition scheme. You may need to use <code>/home/daemon-data</code> to have enough space.</strong></p> <p class="text-muted small">Enter the directory where server files should be stored. <strong>If you use OVH you should check your partition scheme. You may need to use <code>/home/daemon-data</code> to have enough space.</strong></p>
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-6">