mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 11:45:43 +08:00
Added prerm to revoke service permissions
This commit is contained in:
@@ -34,6 +34,7 @@ jobs:
|
|||||||
cp -R Build/deb-meta/* packaging/
|
cp -R Build/deb-meta/* packaging/
|
||||||
chmod 755 packaging/DEBIAN/postinst
|
chmod 755 packaging/DEBIAN/postinst
|
||||||
chmod 755 packaging/DEBIAN/postrm
|
chmod 755 packaging/DEBIAN/postrm
|
||||||
|
chmod 755 packaging/DEBIAN/prerm
|
||||||
|
|
||||||
- name: Move artifacts to packaging directory
|
- name: Move artifacts to packaging directory
|
||||||
run: cp -R Source/MQTTnet.Server/bin/Release/net5.0/linux-x64/publish/* packaging/opt/MQTTnetServer
|
run: cp -R Source/MQTTnet.Server/bin/Release/net5.0/linux-x64/publish/* packaging/opt/MQTTnetServer
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BASEPATH=/opt
|
||||||
|
INSTALLPATH=$BASEPATH/MQTTnetServer
|
||||||
|
|
||||||
|
# Remove permission to open ports
|
||||||
|
setcap CAP_NET_BIND_SERVICE=-eip $INSTALLPATH/MQTTnet.Server
|
||||||
Reference in New Issue
Block a user