mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 21:13:45 +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 {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
my $default_vers = qr/^(?:nautilus|octopus)$/;
|
my $cephver = $param->{version} || 'nautilus';
|
||||||
my $cephver = $param->{version} || $default_vers;
|
|
||||||
|
|
||||||
my $repolist;
|
my $repolist;
|
||||||
if ($cephver eq 'nautilus') {
|
if ($cephver eq 'nautilus') {
|
||||||
@ -151,7 +150,7 @@ __PACKAGE__->register_method ({
|
|||||||
PVE::Tools::file_set_contents("/etc/apt/sources.list.d/ceph.list", $repolist);
|
PVE::Tools::file_set_contents("/etc/apt/sources.list.d/ceph.list", $repolist);
|
||||||
|
|
||||||
warn "WARNING: installing non-default ceph release '$cephver'!\n"
|
warn "WARNING: installing non-default ceph release '$cephver'!\n"
|
||||||
if $cephver !~ $default_vers;
|
if $cephver !~ qr/^(?:nautilus|octopus)$/;
|
||||||
|
|
||||||
local $ENV{DEBIAN_FRONTEND} = 'noninteractive';
|
local $ENV{DEBIAN_FRONTEND} = 'noninteractive';
|
||||||
print "update available package list\n";
|
print "update available package list\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user