#! /bin/bash # Installations- und Update-Batch fuer das Programm JHH5 (c) 1996-2017 W. Kuehl function download { curl -o ./temp/jhh5.zip 'http://cwkuehl.de/wp-content/uploads/2016/07/JHaushalt-5_1.zip' rm -rf temp/zip unzip ./temp/jhh5.zip -d ./temp/zip cp -rf ./temp/zip/* . rm -rf temp/zip rm ./temp/jhh5.zip } if test ! -d temp then mkdir temp fi if test -e Anwendung-0.1.jar then download rm ./Leer*.* else download fi if test ! -e log4j.properties then cp Leerlog4j.properties log4j.properties fi if test ! -e ServerConfig.properties then cp LeerServerConfig.properties ServerConfig.properties fi if test ! -d ~/hsqldb then mkdir ~/hsqldb fi if test ! -d ~/hsqldb/JHH5.properties then cp LeerJHH5.properties ~/hsqldb/JHH5.properties cp LeerJHH5.script ~/hsqldb/JHH5.script fi #chmod +x ./#Install.sh #chmod +x ./#Update.sh chmod +x ./#JHH5.sh rm -f *.cmd rm -f *.exe # JHH5 starten ./#JHH5.sh