fm-rest-api: Modify access privilege and ownership of fm config

Modify access privilege and ownership of fm config
according to upstream change:

```````````````````````````````````````````````
commit 454aa613265e6e31138112a424d4f0fa130f315f
Author: Yuxing Jiang <yuxing.jiang@windriver.com>
Date:   Fri Jul 17 13:43:06 2020 -0400

    Modify access privilege and ownership of fm config

    This commit modifies the ownership and access privilege of the
    fault manager config file to the fm user only.

    Verified the ownership and permission of /etc/fm/fm.conf after
    successfully installed and unlocked a controller. No extra error
    message is produced in fm-manager.log and fm-event.log. And fm
    commands are functional.

    Closes-Bug: 1887444
    Signed-off-by: Yuxing Jiang <yuxing.jiang@windriver.com>
```````````````````````````````````````````````

Story: 2008952
Task: 42576

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: If59ddf7be37374903f6d58da95bce49c997bfb52
This commit is contained in:
Jackie Huang 2021-05-18 15:26:44 +08:00
parent 2e42e9c32a
commit 84415fdcd7

View File

@ -42,6 +42,8 @@ EOF
oslo-config-generator --config-file /etc/fm/config-generator.conf --output-file /etc/fm/fm.conf.sample
mv /etc/fm/fm.conf.sample /etc/fm/fm.conf
chmod 600 /etc/fm/fm.conf
chown fm:fm /etc/fm/fm.conf
rm /etc/fm/config-generator.conf
}