fix(packaging): manage properle vmware config ile

This commit is contained in:
Kevin Duret 2023-05-29 15:08:38 +02:00
parent 62a4ab9885
commit ac0823634d
3 changed files with 12 additions and 0 deletions

View File

@ -65,6 +65,10 @@ contents:
- src: "config/centreon_vmware-conf.pm"
dst: "/etc/centreon/centreon_vmware.pm"
type: config|noreplace
packager: rpm
- src: "config/centreon_vmware-conf.pm"
dst: "/etc/centreon/centreon_vmware.pm.new"
packager: deb
overrides:
rpm:

View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ "$1" = "configure" ]; then # deb
if [ ! -f "/etc/centreon/centreon_vmware.pm" ]; then
mv /etc/centreon/centreon_vmware.pm.new /etc/centreon/centreon_vmware.pm
fi
fi

View File

@ -58,6 +58,7 @@ overrides:
- libnet-smtp-ssl-perl
- libsoap-lite-perl
- libtext-template-perl
- libxml-libxml-perl
rpm:
compression: zstd