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

mkdir -p /opt/traccar
cp -r * /opt/traccar
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

rm /opt/traccar/setup.sh
rm -r ../out