From d59e465639e60acce4d7be6e4c6e1ab5d08a22e6 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Thu, 9 Nov 2023 19:15:30 +0800 Subject: [PATCH] fix: build spec --- rpmbuild/SPECS/omc.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index d31ade2..5cdd6b0 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -103,12 +103,23 @@ if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi sed -i 's/listen 80;/listen 1080;/g' ${NginxEtcDir}/nginx.conf sed -i 's/listen \[::\]:80;/listen \[::\]:1080;/g' ${NginxEtcDir}/nginx.conf systemctl daemon-reload -systemctl restart nginx.service systemctl enable restagent.service systemctl enable crontask.service systemctl enable sshsvc.service systemctl enable captrace.service systemctl enable adb.service +systemctl stop restagent.service +systemctl stop crontask.service +systemctl stop sshsvc.service +systemctl stop captrace.service +systemctl stop nginx.service +systemctl stop adb.service +systemctl start adb.service +systemctl start nginx.service +systemctl start captrace.service +systemctl start sshsvc.service +systemctl start crontask.service +systemctl start restagent.service # 卸载时执行 %postun