aboutsummaryrefslogtreecommitdiff
path: root/setup/setup.sh
blob: 72fab94e9f6578181436c4a259ad448db29eb870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

mkdir -p /opt/traccar
cp -r * /opt/traccar
rm -r ../out
rm /opt/traccar/setup.sh
chmod -R go+rX /opt/traccar

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