From 766d2e4ae5f24c3a6837f74c2666075b42c6c9d0 Mon Sep 17 00:00:00 2001
From: Nikolaus Krismer <nikolaus.krismer@uibk.ac.at>
Date: Tue, 22 Jul 2014 17:07:11 +0200
Subject: [PATCH] trying to fix project installation (of release and snapshot)

---
 etc/vagrant/bootstrap.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/etc/vagrant/bootstrap.sh b/etc/vagrant/bootstrap.sh
index c3c6e631..0778cad0 100644
--- a/etc/vagrant/bootstrap.sh
+++ b/etc/vagrant/bootstrap.sh
@@ -523,7 +523,8 @@ fi
 if $INSTALL_ISOCHRONE_RELEASE; then
 	echo "Installing template project \"isochrone (release)\""
 	# we do not save this file in download dir (we do not want caching for isochrone.war)
-	fn_download_newer $TOMCAT_WEBAPP_DIR/isochrone.war $NEXUS_RELEASE_ISOCHRONE
+	fn_download $DOWNLOAD_DIR/isochrone.war $NEXUS_RELEASE_ISOCHRONE
+	cp $DOWNLOAD_DIR/isochrone.war $TOMCAT_WEBAPP_DIR/isochrone.war
 	unzip -o -d $TOMCAT_WEBAPP_DIR/isochrone $TOMCAT_WEBAPP_DIR/isochrone.war > install_isochrone_release.log 2>&1
 	rm -f $TOMCAT_WEBAPP_DIR/isochrone.war >> install_isochrone_release.log 2>&1
 fi
@@ -531,7 +532,8 @@ fi
 if $INSTALL_ISOCHRONE_SNAPSHOT; then
 	echo "Installing template project \"isochrone (testing)\""
 	# we do not save this file in download dir (we do not want caching for testing.war)
-	fn_download_newer $TOMCAT_WEBAPP_DIR/testing.war $NEXUS_SNAPSHOT_ISOCHRONE
+	fn_download $DOWNLOAD_DIR/testing.war $NEXUS_SNAPSHOT_ISOCHRONE
+	cp $DOWNLOAD_DIR/testing.war $TOMCAT_WEBAPP_DIR/testing.war
 	unzip -o -d $TOMCAT_WEBAPP_DIR/testing $TOMCAT_WEBAPP_DIR/testing.war > install_isochrone_snapshot.log 2>&1
 	rm -f $TOMCAT_WEBAPP_DIR/testing.war >> install_isochrone_snapshot.log 2>&1
 fi
-- 
GitLab