mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 19:32:23 +00:00
pveceph: reuse supported ceph versions for non-default warning
albeit this is a bit odd safety "check" anyway Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
983921b9a1
commit
7271e6f67d
@ -159,8 +159,8 @@ __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"
|
my $supported_re = join('|', $supported_ceph_versions->@*);
|
||||||
if $cephver !~ qr/^(?:octopus|pacific)$/;
|
warn "WARNING: installing non-default ceph release '$cephver'!\n" if $cephver !~ qr/^(?:$supported_re)$/;
|
||||||
|
|
||||||
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