- be optimistic about the working binary package of NubiVis
authorJosef Spillner <josef.spillner@tu-dresden.de>
Sat, 22 Mar 2014 15:46:47 +0000 (16:46 +0100)
committerJosef Spillner <josef.spillner@tu-dresden.de>
Sat, 22 Mar 2014 15:46:47 +0000 (16:46 +0100)
scripts/fill-demonstrator-nubivis.sh

index a4434ba..609dd61 100755 (executable)
@@ -3,43 +3,49 @@
 system=system
 origdir=$PWD
 
-mkdir -p _checkouts
-cd _checkouts
-if [ ! -d nubivis ]; then
-       git clone -b pibox git://serviceplatform.org/git/nubivis
-else
-       cd nubivis
-       git pull
-fi
-cd $origdir
-
-cd _checkouts/nubivis
-git submodule init
-git submodule update
-cd $origdir
-
-sudo mkdir -p $system/var/www
-sudo rm -rf $system/var/www/nubivis
-sudo cp -r _checkouts/nubivis/webapplication/src $system/var/www/nubivis
-sudo cp -r _checkouts/nubivis/REST-API $system/var/www/nubivis-api
-
-sudo chroot $system apt-get --assume-yes install --no-install-recommends tomcat7
-
-sudo cp _checkouts/nubivis/binaries-precompiled/wimdService.war $system/var/lib/tomcat7/webapps/
-
-##sudo apt-get --assume-yes install libdbus-java
-cd _checkouts/nubivis/jdbmanalyzer
-make
-cd $origdir
-sudo cp -r _checkouts/nubivis/jdbmanalyzer $system/opt/
-
-sudo chroot $system chmod 777 /opt/jdbmanalyzer/src
-sudo chroot $system ln -s /opt/jdbmanalyzer/nubisave-database /usr/bin
-
-sudo mkdir -p $system/usr/share/tomcat7/.nubivis/config
-sudo cp data/nubisave-config/config.txt $system/usr/share/tomcat7/.nubivis/config/nubisave
-sudo chmod 666 $system/usr/share/tomcat7/.nubivis/config/nubisave
-sudo chmod 666 $system/home/demo/.nubisave/db.*
+#sudo chroot $system sh -c "wget -O- http://nubisave.org/downloads/nubisave.key | sudo apt-key add -"
+#echo "deb http://nubisave.org/packages/ ./" | sudo tee -a $system/etc/apt/sources.list
+#sudo chroot $system apt-get update
+
+sudo chroot $system apt-get --assume-yes install nubivis
+
+#mkdir -p _checkouts
+#cd _checkouts
+#if [ ! -d nubivis ]; then
+#      git clone -b pibox git://serviceplatform.org/git/nubivis
+#else
+#      cd nubivis
+#      git pull
+#fi
+#cd $origdir
+#
+#cd _checkouts/nubivis
+#git submodule init
+#git submodule update
+#cd $origdir
+#
+#sudo mkdir -p $system/var/www
+#sudo rm -rf $system/var/www/nubivis
+#sudo cp -r _checkouts/nubivis/webapplication/src $system/var/www/nubivis
+#sudo cp -r _checkouts/nubivis/REST-API $system/var/www/nubivis-api
+#
+#sudo chroot $system apt-get --assume-yes install --no-install-recommends tomcat7
+#
+#sudo cp _checkouts/nubivis/binaries-precompiled/wimdService.war $system/var/lib/tomcat7/webapps/
+#
+###sudo apt-get --assume-yes install libdbus-java
+#cd _checkouts/nubivis/jdbmanalyzer
+#make
+#cd $origdir
+#sudo cp -r _checkouts/nubivis/jdbmanalyzer $system/opt/
+#
+#sudo chroot $system chmod 777 /opt/jdbmanalyzer/src
+#sudo chroot $system ln -s /opt/jdbmanalyzer/nubisave-database /usr/bin
+#
+#sudo mkdir -p $system/usr/share/tomcat7/.nubivis/config
+#sudo cp data/nubisave-config/config.txt $system/usr/share/tomcat7/.nubivis/config/nubisave
+#sudo chmod 666 $system/usr/share/tomcat7/.nubivis/config/nubisave
+#sudo chmod 666 $system/home/demo/.nubisave/db.*
 
 sudo sed -i -e 's/^#user_allow_other/user_allow_other/' $system/etc/fuse.conf