aboutsummaryrefslogtreecommitdiff
path: root/setup/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup/setup.sh')
-rwxr-xr-xsetup/setup.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/setup/setup.sh b/setup/setup.sh
index 51a139dd1..b27fcbe1c 100755
--- a/setup/setup.sh
+++ b/setup/setup.sh
@@ -9,8 +9,13 @@ then
rm -r ../out
rm /opt/traccar/setup.sh
chmod -R go+rX /opt/traccar
- cd /opt/traccar/bin/
- /opt/traccar/bin/installDaemon.sh
+
+ mv /opt/traccar/traccar.service /etc/systemd/system
+ chmod 664 /etc/systemd/system/traccar.service
+
+ systemctl daemon-reload
+ systemctl enable traccar.service
+ systemctl start traccar.service
else
echo 'Java 7 or higher is required'
fi