aboutsummaryrefslogtreecommitdiff
path: root/setup/unix/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup/unix/setup.sh')
-rwxr-xr-xsetup/unix/setup.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/setup/unix/setup.sh b/setup/unix/setup.sh
new file mode 100755
index 000000000..cf93e8985
--- /dev/null
+++ b/setup/unix/setup.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+UNIX_PATH="/opt/traccar"
+
+if [ $(java -version 2>&1 | grep -i version | sed 's/.*version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') -lt 17 ]
+then
+ echo "Please install Java version 7 or higher"
+else
+ mkdir $UNIX_PATH
+ cp -rf * $UNIX_PATH
+ chmod -R +r $UNIX_PATH
+ $UNIX_PATH/bin/traccar install
+ rm $UNIX_PATH/setup.sh
+fi