aboutsummaryrefslogtreecommitdiff
path: root/setup/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup/setup.sh')
-rwxr-xr-xsetup/setup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/setup/setup.sh b/setup/setup.sh
index 43e183eea..2b0ad1e7e 100755
--- a/setup/setup.sh
+++ b/setup/setup.sh
@@ -2,16 +2,16 @@
if which java &>/dev/null
then
- if [ $(java -version 2>&1 | grep -i version | sed 's/.*version \"\(.*\)\.\(.*\)\..*\"/\1\2/; 1q') -lt 17 ]
+ if java -jar test.jar
then
- echo 'Java 7 or higher required'
- else
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'