blob: 2b0ad1e7e59ed535215da2f03dbff92b9e3c4197 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
if which java &>/dev/null
then
if java -jar test.jar
then
mkdir -p /opt/traccar
cp -r * /opt/traccar
rm -r ../out
rm /opt/traccar/setup.sh
chmod -r go+rX /opt/traccar
/opt/traccar/bin/installDaemon.sh
else
echo 'Java 7 or higher is required'
fi
else
echo 'Java runtime is required'
fi
|