aboutsummaryrefslogtreecommitdiff
path: root/setup/setup.sh
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:49:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:49:57 +1200
commitcc3d3021981a799c8c9d28dad4ad9bffa320a370 (patch)
tree8a1f5af8a5f5a6c12a658c9a466372337f9c01f1 /setup/setup.sh
parent526ae13099da044a0feeb5afc07563bea0f29c7f (diff)
downloadtrackermap-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.tar.gz
trackermap-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.tar.bz2
trackermap-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.zip
Modify installation scripts
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'