summaryrefslogtreecommitdiffstats
path: root/demo/nginx_proxy/demo-2/apply_patch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'demo/nginx_proxy/demo-2/apply_patch.sh')
-rwxr-xr-xdemo/nginx_proxy/demo-2/apply_patch.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/demo/nginx_proxy/demo-2/apply_patch.sh b/demo/nginx_proxy/demo-2/apply_patch.sh
new file mode 100755
index 0000000..05e8c66
--- /dev/null
+++ b/demo/nginx_proxy/demo-2/apply_patch.sh
@@ -0,0 +1,9 @@
+#!/bin/bash -x
+sudo apt-get install patch -y
+cd /DMM/src/
+sudo patch -p2 -i /DMM/demo/nginx_proxy/demo-2/demo_2stack.patch
+if [ $? -ne 0 ]; then
+ echo "Patch Apply failed. Downlaod correct commit. Check README for details."
+ exit -1
+fi
+cd -