aboutsummaryrefslogtreecommitdiff
path: root/setup/unix
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-09 11:11:18 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-09 11:11:18 +1200
commita47360b0da3856a54e027f8e1d415fb72c0016e6 (patch)
tree5d20dad8d048fd36ae2c9b59f0e863db53c62113 /setup/unix
parent192d73d617601a8d9a6100537497ecda56c734ca (diff)
downloadtrackermap-server-a47360b0da3856a54e027f8e1d415fb72c0016e6.tar.gz
trackermap-server-a47360b0da3856a54e027f8e1d415fb72c0016e6.tar.bz2
trackermap-server-a47360b0da3856a54e027f8e1d415fb72c0016e6.zip
Update setup package script
Diffstat (limited to 'setup/unix')
-rwxr-xr-xsetup/unix/linux-arm-setup.sh22
-rwxr-xr-xsetup/unix/setup.sh14
2 files changed, 36 insertions, 0 deletions
diff --git a/setup/unix/linux-arm-setup.sh b/setup/unix/linux-arm-setup.sh
new file mode 100755
index 000000000..afa3be37a
--- /dev/null
+++ b/setup/unix/linux-arm-setup.sh
@@ -0,0 +1,22 @@
+#!/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
+ if [ -z "`readelf -A /proc/self/exe | grep Tag_ABI_VFP_args`" ]
+ then
+ mv $UNIX_PATH/bin/wrapper-linux-armel-32 $UNIX_PATH/bin/wrapper
+ mv $UNIX_PATH/lib/libwrapper-linux-armel-32.so $UNIX_PATH/lib/libwrapper.so
+ else
+ mv $UNIX_PATH/bin/wrapper-linux-armhf-32 $UNIX_PATH/bin/wrapper
+ mv $UNIX_PATH/lib/libwrapper-linux-armhf-32.so $UNIX_PATH/lib/libwrapper.so
+ fi
+ $UNIX_PATH/bin/traccar install
+ rm $UNIX_PATH/setup.sh
+fi
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