build: 服务omc.service文件

This commit is contained in:
TsMask
2024-07-10 18:21:29 +08:00
parent 19e2fa28e0
commit 6162daf813
4 changed files with 3 additions and 3 deletions

View File

@@ -3,3 +3,4 @@
systemctl stop omc.service
systemctl disable omc.service
systemctl daemon-reload
rm -rf /lib/systemd/system/omc.service

View File

@@ -70,10 +70,9 @@ firewall-cmd --reload
if [ "$1" = "0" ] ; then
sudo systemctl stop omc.service
rm -rf /usr/local/omc
rm -rf /usr/local/etc/omc
sudo systemctl disable omc.service
sudo systemctl daemon-reload
rm -rf /lib/systemd/system/omc.service
else
sudo systemctl daemon-reload
sudo systemctl stop omc.service