Duplicate pmon.d conf files to another location

Created a duplicate install of /etc/pmon.d/*.conf files
to /usr/share/starlingx/pmon.d/

This is part of an effort to allow pmon conf files
to be selected at runtime by kickstarts.

Test Plan:
PASS: duplicate conf on deb

Story: 2010211
Task: 46110

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I7c66c4806024e8d6bb54609bab8f05b0b6f1d5df
This commit is contained in:
Leonardo Fagundes Luz Serrano 2022-08-23 23:22:43 -03:00
parent 571b0665ae
commit 3f45c9ad7b
2 changed files with 7 additions and 3 deletions

View File

@ -2,3 +2,4 @@ debian/systemd/00-fm-rest-api.preset etc/systemd/system-preset
etc/fm/fm.conf
etc/init.d
etc/pmon.d/fm-api.conf
usr/share/starlingx/pmon.d/fm-api.conf

View File

@ -4,7 +4,8 @@
export PYBUILD_NAME=fm-rest-api
export ROOT=debian/tmp
export FMCONFDIR=$(ROOT)/etc/fm
export PMONDDIR=$(ROOT)/etc/pmon.d
export PMONDIR_1=$(ROOT)/etc/pmon.d
export PMONDIR_2=$(ROOT)/usr/share/starlingx/pmon.d
export INITDIR=$(ROOT)/etc/init.d
%:
@ -13,8 +14,10 @@ export INITDIR=$(ROOT)/etc/init.d
override_dh_auto_install:
install -d -m 755 $(INITDIR)
install -p -D -m 755 scripts/fm-api $(INITDIR)/fm-api
install -d -m 755 $(PMONDDIR)
install -p -D -m 644 fm-api-pmond.conf $(PMONDDIR)/fm-api.conf
install -d -m 755 $(PMONDIR_1)
install -p -D -m 644 fm-api-pmond.conf $(PMONDIR_1)/fm-api.conf
install -d -m 755 $(PMONDIR_2)
install -p -D -m 644 fm-api-pmond.conf $(PMONDIR_2)/fm-api.conf
oslo-config-generator --config-file fm/config-generator.conf --output-file fm.conf.sample
install -d -m 755 $(FMCONFDIR)
install -p -D -m 600 fm.conf.sample $(FMCONFDIR)/fm.conf