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