Merge pull request #114 from centreon/MON-14383-debian-package-issue-with-centreon-plugin-virtualization-vmware-daemon

Mon 14383 debian package issue with centreon plugin virtualization vmware daemon
This commit is contained in:
Luiz Costa 2022-07-28 13:30:50 +01:00 committed by GitHub
commit 737cebdb2a
6 changed files with 25 additions and 14 deletions

View File

@ -1,10 +0,0 @@
#!/bin/sh
if [ "$1" = "configure" ] ; then
systemctl daemon-reload
systemctl enable centreon_vmware.service
systemctl restart centreon_vmware.service
fi
exit 0

View File

@ -1 +0,0 @@
../../../contrib/debian/centreon_vmware-systemd

View File

@ -1 +0,0 @@
../../../contrib/config/centreon_vmware-conf.pm

View File

@ -14,6 +14,7 @@ Depends: ${misc:Depends},
libjson-xs-perl, libjson-xs-perl,
liblwp-protocol-https-perl, liblwp-protocol-https-perl,
libzmq-constants-perl, libzmq-constants-perl,
libtext-template-perl,
zmq-libzmq4-perl, zmq-libzmq4-perl,
perl-vmware-vsphere perl-vmware-vsphere
Description: Perl daemon to monitor VSphere Infrastructure Description: Perl daemon to monitor VSphere Infrastructure

View File

@ -1,4 +1,4 @@
centreon_vmware.pl usr/bin centreon_vmware.pl usr/bin
debian/contrib/centreon_vmware lib/systemd/system contrib/debian/centreon_vmware-systemd lib/systemd/system
debian/contrib/centreon_vmware.pm etc/centreon contrib/config/centreon_vmware-conf.pm etc/centreon
centreon/* usr/share/perl5/centreon centreon/* usr/share/perl5/centreon

View File

@ -0,0 +1,22 @@
#!/bin/sh
if [ "$1" = "configure" ] ; then
if [ -e "/lib/systemd/system/centreon_vmware-systemd" ]; then
mv /lib/systemd/system/centreon_vmware-systemd /lib/systemd/system/centreon_vmware.service
fi
if [ -e "/etc/centreon/centreon_vmware-conf.pm" ]; then
mv /etc/centreon/centreon_vmware-conf.pm /etc/centreon/centreon_vmware.pm
fi
if [ "$(getent passwd centreon)" ]; then
chown centreon:centreon /etc/centreon/centreon_vmware.pm
fi
systemctl daemon-reload
systemctl enable centreon_vmware.service
systemctl restart centreon_vmware.service
fi
exit 0