Add install file
[remote-debug.git] / install.sh
diff --git a/install.sh b/install.sh
new file mode 100755 (executable)
index 0000000..acbf196
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+SERVICE='suanzi-support.service'
+
+
+echo 'Install suanzi-support'
+cp suanzi-support /usr/local/bin/ || exit 1
+
+echo "Install ${SERVICE}"
+
+cp ${SERVICE} /lib/systemd/system || exit 1
+systemctl enable ${SERVICE} || exit 1
+
+echo "Start ${SERVICE}"
+systemctl start ${SERVICE} || exit 1
+
+echo "Done"
+
+
+