mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
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:
commit
737cebdb2a
@ -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
|
|
@ -1 +0,0 @@
|
|||||||
../../../contrib/debian/centreon_vmware-systemd
|
|
@ -1 +0,0 @@
|
|||||||
../../../contrib/config/centreon_vmware-conf.pm
|
|
@ -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
|
||||||
|
@ -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
|
22
connectors/vmware/ci/debian/postinst
Normal file
22
connectors/vmware/ci/debian/postinst
Normal 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
|
Loading…
x
Reference in New Issue
Block a user