summaryrefslogtreecommitdiffstats
path: root/mcp/patches/patch.sh
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-07-11 11:41:08 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-07-11 16:44:43 +0400
commit5005e2f8a9c4d9bb10feeea61d8e5651d76fc2b7 (patch)
treef811eca16f67274563471b782f9b516a4514b9e4 /mcp/patches/patch.sh
parent094151224e3dd1f0d19acc184ffabdc9b597255e (diff)
Apply upstream patches
For opendaylight support: * neutron formula * reclass system model Plus missing apply of haproxy state. Change-Id: Ic9e3672b51d5331656d636c44c3f891e49437e23 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/patches/patch.sh')
-rwxr-xr-xmcp/patches/patch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/mcp/patches/patch.sh b/mcp/patches/patch.sh
new file mode 100755
index 000000000..9f9cdea0e
--- /dev/null
+++ b/mcp/patches/patch.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -r "$1" ]; then
+ while IFS=': ' read -r p_dest p_file; do
+ patch -d $p_dest -p1 < /root/fuel/mcp/patches/$p_file
+ done < $1
+fi
+