From aff1f59b301cdd17b1370a10c5790ae2fcf04098 Mon Sep 17 00:00:00 2001
From: Guillem Jover <gjover@sipwise.com>
Date: Tue, 22 Oct 2019 16:17:41 +0200
Subject: [PATCH] TT#51701 Add support for switch from deprecated /var/run to
 /run

Change-Id: I6c3da1279c4e94a488bbb6b9533f33f4d533b9de
---
 templates/200_user-debian.yaml.tt2 | 5 ++++-
 templates/210_user-ngcp.yaml.tt2   | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/templates/200_user-debian.yaml.tt2 b/templates/200_user-debian.yaml.tt2
index 2536b1a..be2b871 100644
--- a/templates/200_user-debian.yaml.tt2
+++ b/templates/200_user-debian.yaml.tt2
@@ -43,7 +43,10 @@ user:
     groups:
       - kamailio
       - ssl-cert
-    home: "/var/run/kamailio"
+    home:
+      or:
+        - "/var/run/kamailio"
+        - "/run/kamailio"
 
   mysql:
     exists: true
diff --git a/templates/210_user-ngcp.yaml.tt2 b/templates/210_user-ngcp.yaml.tt2
index 4f4886f..6b99424 100644
--- a/templates/210_user-ngcp.yaml.tt2
+++ b/templates/210_user-ngcp.yaml.tt2
@@ -57,6 +57,8 @@ user:
       or:
         - "/var/run/ngcp-sems"
         - "/var/run/sems"
+        - "/run/ngcp-sems"
+        - "/run/sems"
 
   sipwise:
     exists: true