X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=install.sh;fp=install.sh;h=acbf196f194ffdc2c1edc5399d5814904908fe20;hb=a371c0f6b2d994a074eaeb56a2125cb4c0af85f8;hp=0000000000000000000000000000000000000000;hpb=394fb91b102fe248aec164d70a50c6088163babb;p=remote-debug.git diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..acbf196 --- /dev/null +++ b/install.sh @@ -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" + + +