fix: change var
This commit is contained in:
@@ -58,14 +58,14 @@ chmod +rx ${RPM_BUILD_ROOT}/usr/lib64/*
|
|||||||
|
|
||||||
# 安装完成后执行
|
# 安装完成后执行
|
||||||
%post
|
%post
|
||||||
OmcRootDir=/usr/local/omc
|
OMCRootDir=/usr/local/omc
|
||||||
OMCEtcDir=${OmcRootDir}/etc
|
OMCEtcDir=${OMCRootDir}/etc
|
||||||
FERootDir=${OmcRootDir}/htdocs/front
|
FERootDir=${OMCRootDir}/htdocs/front
|
||||||
UsrLib64Dir=/usr/lib64
|
UsrLib64Dir=/usr/lib64
|
||||||
OmcBinDir=${OmcRootDir}/bin
|
OMCBinDir=${OMCRootDir}/bin
|
||||||
OMCStaticDir=${OmcRootDir}/static
|
OMCStaticDir=${OMCRootDir}/static
|
||||||
UsrLocalBinDir=/usr/local/bin
|
UsrLocalBinDir=/usr/local/bin
|
||||||
OmcDaemon=omcd
|
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"
|
||||||
@@ -108,7 +108,7 @@ if [ ! -e libwiretap.so ]; then ln -s libwiretap.so.12.0.12 libwiretap.so; fi
|
|||||||
if [ ! -e libwsutil.so.13 ]; then ln -s libwsutil.so.13.1.0 libwsutil.so.13; fi
|
if [ ! -e libwsutil.so.13 ]; then ln -s libwsutil.so.13.1.0 libwsutil.so.13; fi
|
||||||
if [ ! -e libwsutil.so ]; then ln -s libwsutil.so.13.1.0 libwsutil.so; fi
|
if [ ! -e libwsutil.so ]; then ln -s libwsutil.so.13.1.0 libwsutil.so; fi
|
||||||
cd ${UsrLocalBinDir}
|
cd ${UsrLocalBinDir}
|
||||||
if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi
|
if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/omcsvc.sh ${OMCDaemon}; fi
|
||||||
|
|
||||||
# setting firewall
|
# setting firewall
|
||||||
PortList="80 443 44080 44443 33030 22222"
|
PortList="80 443 44080 44443 33030 22222"
|
||||||
|
|||||||
Reference in New Issue
Block a user