fix: ...
This commit is contained in:
@@ -61,12 +61,7 @@ chmod +rx ${RPM_BUILD_ROOT}/usr/lib64/*
|
|||||||
#make
|
#make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
echo -n "Stopping OMC service ... "
|
|
||||||
systemctl stop restagent.service
|
|
||||||
systemctl stop crontask.service
|
|
||||||
systemctl stop sshsvc.service
|
|
||||||
systemctl stop captrace.service
|
|
||||||
echo "done"
|
|
||||||
|
|
||||||
# 安装完成后执行
|
# 安装完成后执行
|
||||||
%post
|
%post
|
||||||
@@ -81,6 +76,14 @@ OmcDaemon=omcd
|
|||||||
NginxEtcDir=/etc/nginx
|
NginxEtcDir=/etc/nginx
|
||||||
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml omc.conf"
|
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml omc.conf"
|
||||||
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
|
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
|
||||||
|
|
||||||
|
echo -n "Stopping OMC service ... "
|
||||||
|
systemctl stop restagent.service
|
||||||
|
systemctl stop crontask.service
|
||||||
|
systemctl stop sshsvc.service
|
||||||
|
systemctl stop captrace.service
|
||||||
|
echo "done"
|
||||||
|
|
||||||
for CFile in ${CFileList}; do
|
for CFile in ${CFileList}; do
|
||||||
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
|
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
|
||||||
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir}
|
||||||
|
|||||||
Reference in New Issue
Block a user