Added command to stop service before uninstalling

This commit is contained in:
Damian Wolgast
2021-03-12 12:26:04 +01:00
parent 6cbb8d42e3
commit 5c2879029b
+3
View File
@@ -3,5 +3,8 @@
BASEPATH=/opt
INSTALLPATH=$BASEPATH/MQTTnetServer
# Stop service before uninstalling
systemctl stop mqttnet-server
# Remove permission to open ports
setcap CAP_NET_BIND_SERVICE=-eip $INSTALLPATH/MQTTnet.Server