svn commit: r1849677 - /ofbiz/tools/demo-backup/old-manual.sh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1849677 - /ofbiz/tools/demo-backup/old-manual.sh

nmalin
Author: nmalin
Date: Mon Dec 24 09:05:57 2018
New Revision: 1849677

URL: http://svn.apache.org/viewvc?rev=1849677&view=rev
Log:
Load contrast-rO0.jar if not present for old demo

Modified:
    ofbiz/tools/demo-backup/old-manual.sh

Modified: ofbiz/tools/demo-backup/old-manual.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/old-manual.sh?rev=1849677&r1=1849676&r2=1849677&view=diff
==============================================================================
--- ofbiz/tools/demo-backup/old-manual.sh (original)
+++ ofbiz/tools/demo-backup/old-manual.sh Mon Dec 24 09:05:57 2018
@@ -2,6 +2,16 @@
 
 cd /home/ofbizDemo/branch13.7
 svn up
+
+#check if contrast-rO0.jar is present and apply
+if [ ! -r "contrast-rO0.jar" ]; then
+    wget -q https://svn.apache.org/repos/asf/ofbiz/branches/release15.12/tools/demo-backup/contrast-rO0.jar
+fi
+if [ ! -r "branch13.7-demo.patch" ]; then
+    wget https://svn.apache.org/repos/asf/ofbiz/tools/demo-backup/branch13.7-demo.patch
+    patch -p0 < branch13.7-demo.patch
+fi
+
 rm /home/ofbizDemo/branch13.7/framework/base/config/*.jks
 rm /home/ofbizDemo/branch13.7/framework/base/config/jesse.properties
 ./ant stop -Dportoffset=20000