From 19aff5fb5b4cd77d9ed6689ecc43a8bdb960a95d Mon Sep 17 00:00:00 2001
From: Alexander Lutay <alutay@sipwise.com>
Date: Mon, 26 Jan 2015 19:44:17 +0100
Subject: [PATCH] MT#10711 MT#10093 Use config_deploy.inc from
 /etc/ngcp-installer

Change-Id: Ic22ff9ecda97373db0ddf2cf0b1040d2f2a748aa
---
 deployment.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/deployment.sh b/deployment.sh
index fa9e12e..217363b 100755
--- a/deployment.sh
+++ b/deployment.sh
@@ -1433,8 +1433,10 @@ EOF
 }
 
 gen_installer_config () {
+  mkdir -p "${TARGET}/etc/ngcp-installer/"
+
   if "$PRO_EDITION" ; then
-    cat > ${TARGET}/usr/share/ngcp-installer/config_deploy.inc << EOF
+    cat > ${TARGET}/etc/ngcp-installer/config_deploy.inc << EOF
 HNAME="${ROLE}"
 CROLE="${CROLE}"
 IP1="${IP1}"
@@ -1445,7 +1447,7 @@ MCASTADDR="${MCASTADDR}"
 EOF
   fi
 
-  cat >> ${TARGET}/usr/share/ngcp-installer/config_deploy.inc << EOF
+  cat >> ${TARGET}/etc/ngcp-installer/config_deploy.inc << EOF
 FORCE=yes
 SKIP_SOURCES_LIST="${SKIP_SOURCES_LIST}"
 ADJUST_FOR_LOW_PERFORMANCE="${ADJUST_FOR_LOW_PERFORMANCE}"