mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-10-04 05:57:13 +00:00
api: subscription update: report error if removing ceph-auth file fails
Print a warning if the file could not deleted (if it was actually existed) Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5f403490f6
commit
abbf6dedb9
@ -94,7 +94,7 @@ sub write_etc_subscription {
|
||||
$filename, "/etc/apt/auth.conf.d/pve.conf", "enterprise.proxmox.com/debian/pve", $info);
|
||||
|
||||
if (!(defined($info->{key}) && defined($info->{serverid}))) {
|
||||
unlink "/etc/apt/auth.conf.d/ceph.conf";
|
||||
unlink "/etc/apt/auth.conf.d/ceph.conf" or $!{ENOENT} or die "failed to remove apt auth ceph.conf - $!";
|
||||
} else {
|
||||
# FIXME: improve this, especially the selection of valid ceph-releases
|
||||
# NOTE: currently we should add future ceph releases as early as possible, to ensure that
|
||||
|
Loading…
Reference in New Issue
Block a user