Add install file
[remote-debug.git] / install.sh
1 #!/bin/bash
2
3 SERVICE='suanzi-support.service'
4
5
6 echo 'Install suanzi-support'
7 cp suanzi-support /usr/local/bin/ || exit 1
8
9 echo "Install ${SERVICE}"
10
11 cp ${SERVICE} /lib/systemd/system || exit 1
12 systemctl enable ${SERVICE} || exit 1
13
14 echo "Start ${SERVICE}"
15 systemctl start ${SERVICE} || exit 1
16
17 echo "Done"
18
19
20