mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 01:40:34 +00:00
pveceph install: fix fallback for default version
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
be0bdb1a11
commit
861bf37d54
@ -134,8 +134,7 @@ __PACKAGE__->register_method ({
|
||||
code => sub {
|
||||
my ($param) = @_;
|
||||
|
||||
my $default_vers = qr/^(?:nautilus|octopus)$/;
|
||||
my $cephver = $param->{version} || $default_vers;
|
||||
my $cephver = $param->{version} || 'nautilus';
|
||||
|
||||
my $repolist;
|
||||
if ($cephver eq 'nautilus') {
|
||||
@ -151,7 +150,7 @@ __PACKAGE__->register_method ({
|
||||
PVE::Tools::file_set_contents("/etc/apt/sources.list.d/ceph.list", $repolist);
|
||||
|
||||
warn "WARNING: installing non-default ceph release '$cephver'!\n"
|
||||
if $cephver !~ $default_vers;
|
||||
if $cephver !~ qr/^(?:nautilus|octopus)$/;
|
||||
|
||||
local $ENV{DEBIAN_FRONTEND} = 'noninteractive';
|
||||
print "update available package list\n";
|
||||
|
Loading…
Reference in New Issue
Block a user