-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjameica.sh
More file actions
executable file
·33 lines (29 loc) · 926 Bytes
/
jameica.sh
File metadata and controls
executable file
·33 lines (29 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# Linux Start-Script fuer regulaeren Standalone-Betrieb.
# Jameica wird hierbei mit GUI gestartet.
function run() {
cd ${TARGET_DIR}/${PROGRAM}-${VERSION}
cmd="java -jar ${TARGET_DIR}/${PROGRAM}-${VERSION}/${PROGRAM}-linux64.jar"
echo $cmd
eval $cmd
}
function update() {
if [ ! -d ${TARGET_DIR}/${PROGRAM}-${VERSION} ]; then
echo "updating ${PROGRAM}"
if [ ! -f ${HOME}/Downloads/${PROGRAM}-${VERSION}-linux64.zip ]; then
wget -O ${HOME}/Downloads/${PROGRAM}-${VERSION}-linux64.zip https://www.willuhn.de/products/jameica/releases/current/jameica/jameica-linux64.zip
fi
unzip ${HOME}/Downloads/${PROGRAM}-${VERSION}-linux64.zip -d ${TARGET_DIR}/${PROGRAM}-${VERSION}
cd ${TARGET_DIR}/${PROGRAM}-${VERSION}
shopt -s dotglob
mv jameica/* .
rmdir jameica
fi
}
# main
export TARGET_DIR="/home/share"
export VERSION=2.12.0
export PROGRAM=jameica
#main
update
run