From 25fbee0138ec79f75198f98f4b639b81dd3ff64f Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 2 Jun 2022 17:12:14 +0200 Subject: [PATCH] TT#177550 Check for new /etc/ngcp-config/sites/current symlink MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We check that when the pathname exists it is a symlink. We will perform further consistency checks from «ngcpcfg check». Change-Id: I3850d9cf23fd77b926d08ae47a6969cac1790cf0 --- templates/131_filesys-ngcp-pro.yaml.tt2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/templates/131_filesys-ngcp-pro.yaml.tt2 b/templates/131_filesys-ngcp-pro.yaml.tt2 index b6ad2db..a6af081 100644 --- a/templates/131_filesys-ngcp-pro.yaml.tt2 +++ b/templates/131_filesys-ngcp-pro.yaml.tt2 @@ -5,6 +5,26 @@ -%] file: + /etc/ngcp-config/sites: + exists: + or: + - true + - false + mode: "0755" + owner: root + group: root + filetype: directory + + /etc/ngcp-config/sites/current: + exists: + or: + - true + - false + mode: "0777" + owner: root + group: root + filetype: symlink + /etc/ngcp-config/shared-files: exists: true mode: "0755"