From 41d31b48a96b178d4648c357bc01f3085719082d Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Thu, 7 Feb 2019 15:00:16 +0200 Subject: [PATCH] TT#51416 Check new mysql config files Change permission of generated configs - all of them do not have 'write' permission. Add new sipwise_extra.cnf file to check. Remove old non-existing /etc/ngcp-config/shared-files/mysql/sipwise.cnf. Change-Id: Ia08438e43783067a339de5b4cf764ce79a5c53c2 --- templates/130_filesys-ngcp.yaml.tt2 | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/templates/130_filesys-ngcp.yaml.tt2 b/templates/130_filesys-ngcp.yaml.tt2 index bb94a03..0759f75 100644 --- a/templates/130_filesys-ngcp.yaml.tt2 +++ b/templates/130_filesys-ngcp.yaml.tt2 @@ -80,22 +80,6 @@ file: filetype: directory contains: [] - /etc/ngcp-config/shared-files/mysql: - exists: true - mode: "0755" - owner: root - group: root - filetype: directory - contains: [] - - /etc/ngcp-config/shared-files/mysql/sipwise.cnf: - exists: true - mode: "0600" - owner: root - group: root - filetype: file - contains: [] - /etc/ngcp_version: exists: true mode: "0644" @@ -222,12 +206,21 @@ file: /etc/mysql/sipwise.cnf: exists: true - mode: "0600" + mode: "0400" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/sipwise_extra.cnf: + exists: true + mode: "0400" owner: root group: root filetype: file contains: [] + /etc/alternatives/my.cnf: exists: true mode: "0777"