build: rpm打包脚本修复

This commit is contained in:
TsMask
2024-07-10 17:58:10 +08:00
parent fe9a671487
commit e85053a2d7
2 changed files with 3 additions and 4 deletions

View File

@@ -26,7 +26,6 @@ cd ${RPM_BUILD_ROOT}
cp -rf ${RPM_BUILD_DIR}/* ${RPM_BUILD_ROOT}/
chmod +rx ${RPM_BUILD_ROOT}/usr/local/omc
chmod +rx ${RPM_BUILD_ROOT}/usr/local/omc/*
chmod +rx ${RPM_BUILD_ROOT}/usr/local/bin/*
chmod -R 755 ${RPM_BUILD_ROOT}/usr/local/omc/htdocs/front
%build
@@ -59,8 +58,8 @@ systemctl start omc.service
# 卸载时执行
%postun
rm -f /usr/local/bin/omcd
rm -rf /usr/local/etc/omc
rm -rf /usr/local/omc
# setting firewall
PortList="443 80 33030"