summarylogtreecommitdiffstats
path: root/caas-app
blob: d9bce1b9d509ce88153eae47836a847f9c461c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
if [ -z "$1" ]
    then
	/usr/bin/echo "caas-app username@domain.tld [password]"
	exit 1
fi
DATAHOME=$XDG_DATA_HOME
if [ -z "$XDG_DATA_HOME"]
    then
        DATAHOME=$HOME/.local/share
fi
PROGDATA=$DATAHOME/caas-app/
if [ ! -d "$PROGDATA" ]
    then
        mkdir -p "$PROGDATA"
fi
cd $PROGDATA
exec /usr/bin/java -jar '/usr/share/java/caas-app/caas-app.jar' "$@"