From bf8adf7f61330b7dfefd865256a131fc1a466d54 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 3 Mar 2016 15:54:24 +1300 Subject: Update release config files --- setup/unix/traccar.xml | 10 +++++++--- setup/windows/traccar.iss | 2 +- setup/windows/traccar.xml | 8 ++++++-- 3 files changed, 14 insertions(+), 6 deletions(-) (limited to 'setup') diff --git a/setup/unix/traccar.xml b/setup/unix/traccar.xml index 5eb64e7b0..c43fd25fd 100644 --- a/setup/unix/traccar.xml +++ b/setup/unix/traccar.xml @@ -24,7 +24,7 @@ sa - /opt/traccar/data/db.changelog-master.xml + /opt/traccar/data/changelog-master.xml SELECT * FROM server; @@ -210,7 +210,7 @@ 5064 5065 5066 - 5067 + 5067 5068 5069 5070 @@ -222,7 +222,7 @@ 5076 5077 5078 - 5079 + 5079 5080 5081 5082 @@ -244,5 +244,9 @@ 5098 5099 5100 + 5101 + 5102 + 5103 + 5104 diff --git a/setup/windows/traccar.iss b/setup/windows/traccar.iss index 298c27200..891cc47c3 100644 --- a/setup/windows/traccar.iss +++ b/setup/windows/traccar.iss @@ -83,6 +83,6 @@ begin StringChangeEx(S, '[WEB]', ExpandConstant('{app}\web'), true); StringChangeEx(S, '[LOG]', ExpandConstant('{app}\logs\tracker-server.log'), true); StringChangeEx(S, '[DATABASE]', ExpandConstant('{app}\data\database'), true); - StringChangeEx(S, '[CHANGELOG]', ExpandConstant('{app}\data\db.changelog-master.xml'), true); + StringChangeEx(S, '[CHANGELOG]', ExpandConstant('{app}\data\changelog-master.xml'), true); SaveStringToFile(ExpandConstant(CurrentFileName), S, false); end; diff --git a/setup/windows/traccar.xml b/setup/windows/traccar.xml index c1e675254..40b6fe20e 100644 --- a/setup/windows/traccar.xml +++ b/setup/windows/traccar.xml @@ -210,7 +210,7 @@ 5064 5065 5066 - 5067 + 5067 5068 5069 5070 @@ -222,7 +222,7 @@ 5076 5077 5078 - 5079 + 5079 5080 5081 5082 @@ -244,5 +244,9 @@ 5098 5099 5100 + 5101 + 5102 + 5103 + 5104 -- cgit v1.2.3 From 88a1f80f2540886e427cab2452e038e902b6d054 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 8 Mar 2016 15:51:35 +1300 Subject: Update package and setup scripts --- setup/package.sh | 1 - setup/unix/setup.sh | 19 ++++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'setup') diff --git a/setup/package.sh b/setup/package.sh index 8014836bb..fa5fbd277 100755 --- a/setup/package.sh +++ b/setup/package.sh @@ -15,7 +15,6 @@ fi VERSION=$1 check_requirement () { - eval $1 &>/dev/null if ! eval $1 &>/dev/null then echo $2 diff --git a/setup/unix/setup.sh b/setup/unix/setup.sh index 902139a1a..478966ea0 100755 --- a/setup/unix/setup.sh +++ b/setup/unix/setup.sh @@ -2,13 +2,18 @@ UNIX_PATH="/opt/traccar" -if [ $(java -version 2>&1 | grep -i version | sed 's/.*version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') -lt 17 ] +if which java &>/dev/null then - echo "Please install Java version 7 or higher" + if [ $(java -version 2>&1 | grep -i version | sed 's/.*version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') -lt 17 ] + then + echo "Java 7 or higher required" + else + mkdir -p $UNIX_PATH + cp -rf * $UNIX_PATH + chmod -R go+rX $UNIX_PATH + $UNIX_PATH/bin/traccar install + rm $UNIX_PATH/setup.sh + fi else - mkdir -p $UNIX_PATH - cp -rf * $UNIX_PATH - chmod -R go+rX $UNIX_PATH - $UNIX_PATH/bin/traccar install - rm $UNIX_PATH/setup.sh + echo "Java runtime is required" fi -- cgit v1.2.3