fix mac address id
[remote-debug.git] / install.sh
1 #!/bin/bash
2
3 SERVICE='suanzi-support.service'
4
5 echo 'Install dependencies'
6 apt install sshpass || exit 1
7 pip install paho-mqtt || exit 1
8
9 echo 'Install suanzi-support'
10 cp suanzi-support /usr/local/bin/ || exit 1
11
12 echo "Install ${SERVICE}"
13
14 cp ${SERVICE} /lib/systemd/system || exit 1
15 systemctl enable ${SERVICE} || exit 1
16
17 echo "Start ${SERVICE}"
18 systemctl start ${SERVICE} || exit 1
19
20 echo "Done"
21
22
23