mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 01:44:45 +02:00
Switch default path
This commit is contained in:
parent
0b1712f653
commit
05e9f12dc4
@ -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 . '.');
|
||||
|
@ -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',
|
||||
];
|
||||
|
||||
|
@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,7 @@
|
||||
<div class="row">
|
||||
<div class="form-group col-md-6">
|
||||
<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>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
|
Loading…
x
Reference in New Issue
Block a user