mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 06:38:39 +00:00
pveceph: install ceph service print sucess message
This patch adds a success message on successful ceph.service installation. And adds a newline to make a successful ceph package installation more visible. Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
parent
6db00a0935
commit
1b364b3a98
@ -151,13 +151,18 @@ __PACKAGE__->register_method ({
|
|||||||
|
|
||||||
if (PVE::Ceph::Tools::systemd_managed() && ! -e '/etc/systemd/system/ceph.service') {
|
if (PVE::Ceph::Tools::systemd_managed() && ! -e '/etc/systemd/system/ceph.service') {
|
||||||
#to disable old SysV init scripts.
|
#to disable old SysV init scripts.
|
||||||
print "replacing ceph init script with own ceph.service\n";
|
print "\nreplacing ceph init script with own ceph.service\n";
|
||||||
eval {
|
eval {
|
||||||
PVE::Tools::run_command('cp -v /usr/share/doc/pve-manager/examples/ceph.service /etc/systemd/system/ceph.service');
|
PVE::Tools::run_command('cp -v /usr/share/doc/pve-manager/examples/ceph.service /etc/systemd/system/ceph.service');
|
||||||
PVE::Tools::run_command('systemctl daemon-reload');
|
PVE::Tools::run_command('systemctl daemon-reload');
|
||||||
PVE::Tools::run_command('systemctl enable ceph.service');
|
PVE::Tools::run_command('systemctl enable ceph.service');
|
||||||
};
|
};
|
||||||
warn "could not install ceph.service\n" if $@;
|
my $err = $@;
|
||||||
|
if (!$err) {
|
||||||
|
print "\ninstalled ceph.service successfully\n";
|
||||||
|
} else {
|
||||||
|
warn "could not install ceph.service\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
|
Loading…
Reference in New Issue
Block a user