Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Update config path debian centreon ha dir install (#61)
Browse files Browse the repository at this point in the history
* Update config path-debian-centreon-ha-dir-install

Directory `/etc/sysconfig/` don't exist in debian 11.
We use `/etc/default`.

* Execute mod on mariadb-centreon ocf heartbeat

* Change path of cbd_rrd environment

* Change path of cbd_sql service

* Change path of centreon-central-sync service

* Update centreon-ha.postinst

* Update cbd-sql.service

* Update cbd-rrd.service

* Update cbd-rrd.service

* Update centreon-central-sync.service

* Update centreon-ha-web.install

* Update centreon-ha-web.install

Try like this

* Update centreon-ha-web.install

* Update rules

* Apply suggestions from code review

Co-authored-by: Luiz Costa <[email protected]>

* Update rules

* Update ci/debian/centreon-ha-web.install

Co-authored-by: Luiz Costa <[email protected]>

Co-authored-by: Luiz Costa <[email protected]>
  • Loading branch information
psamecentreon and lgcosta authored Jun 17, 2022
1 parent 1b51431 commit 449ec73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/debian/centreon-ha-web.install
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
etc/centreon-gorgone/config.d/cron.d/* etc/centreon-gorgone/config.d/cron.d
etc/centreon-ha/centreon_central_sync.pm etc/centreon-ha
etc/sudoers.d/centreon-cluster etc/sudoers.d
etc/sysconfig/* etc/sysconfig
etc/sysconfig/* etc/default
systemd/* lib/systemd/system
1 change: 1 addition & 0 deletions ci/debian/centreon-ha.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if [ "$1" = "configure" ] ; then
if [ "$(getent passwd centreon)" ]; then
chown -vR centreon:centreon /var/log/centreon-ha
chmod -vR 0755 /var/log/centreon-ha
chmod gu+x /usr/lib/ocf/resource.d/heartbeat/mariadb-centreon
fi

fi
Expand Down
3 changes: 3 additions & 0 deletions ci/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_gencontrol:
dh_gencontrol -- -Tdebian/substvars

override_dh_auto_build:
sed -i 's#/etc/sysconfig#/etc/default#g' systemd/*.service

0 comments on commit 449ec73

Please sign in to comment.