mirror of
https://github.com/traccar/traccar.git
synced 2026-02-05 05:03:44 -05:00
15 lines
334 B
Bash
Executable File
15 lines
334 B
Bash
Executable File
#!/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 -p $UNIX_PATH
|
|
cp -rf * $UNIX_PATH
|
|
chmod -R go+rX $UNIX_PATH
|
|
$UNIX_PATH/bin/traccar install
|
|
rm $UNIX_PATH/setup.sh
|
|
fi
|