aboutsummaryrefslogtreecommitdiff
path: root/setup/setup.sh
blob: 7443c3b4e2196ab3e6649503b6ad5021800259a3 (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
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

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