]> git.proxmox.com Git - pve-manager.git/commitdiff
pveceph install: be a bit more verbose
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2019 12:23:42 +0000 (13:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2019 12:24:12 +0000 (13:24 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pveceph.pm

index 71a5a2f0ead9b3913802756826b06c2c6d89dc9c..831ad007fce66d5c058f4192e8dfbd50e1f02bc0 100755 (executable)
@@ -140,10 +140,14 @@ __PACKAGE__->register_method ({
        print "update available package list\n";
        eval { run_command(['apt-get', '-q', 'update'], outfunc => sub {}, errfunc => sub {}); };
 
+       print "start installation\n";
        system('apt-get', '--no-install-recommends',
                '-o', 'Dpkg::Options::=--force-confnew',
                'install', '--',
-               'ceph', 'ceph-common', 'ceph-mds', 'ceph-fuse', 'gdisk');
+               'ceph', 'ceph-common', 'ceph-mds', 'ceph-fuse', 'gdisk') == 0
+           || die "apt failed during ceph installation ($?)\n";
+
+       print "\ninstalled ceph $cephver successfully\n";
 
        if (PVE::Ceph::Tools::systemd_managed() && ! -e '/etc/systemd/system/ceph.service') {
            #to disable old SysV init scripts.