fix: ...
This commit is contained in:
@@ -36,7 +36,7 @@ FERootDir=${OMCRootDir}/htdocs/front
|
||||
OMCBinDir=${OMCRootDir}/bin
|
||||
OMCStaticDir=${OMCRootDir}/static
|
||||
UsrLocalBinDir=/usr/local/bin
|
||||
OMCDaemon=psapd
|
||||
OMCDaemon=omcd
|
||||
NginxEtcDir=/etc/nginx
|
||||
CFileList="restconf.yaml sshsvc.yaml omc.conf"
|
||||
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
|
||||
@@ -68,7 +68,7 @@ if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p
|
||||
mkdir -p /opt/omc/ftp
|
||||
mkdir -p /opt/omc/ftp/log
|
||||
cd ${UsrLocalBinDir}
|
||||
if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/psapsvc.sh ${OMCDaemon}; fi
|
||||
if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/omcsvc.sh ${OMCDaemon}; fi
|
||||
|
||||
# setting firewall
|
||||
PortList="80 443 44080 44443 33030 22222"
|
||||
@@ -105,7 +105,7 @@ echo "done"
|
||||
# 卸载时执行
|
||||
%postun
|
||||
UsrLocalBinDir=/usr/local/bin
|
||||
rm -f ${UsrLocalBinDir}/psapd
|
||||
rm -f ${UsrLocalBinDir}/omcd
|
||||
|
||||
# setting firewall
|
||||
PortList="80 443 44080 44443 33030 22222"
|
||||
|
||||
Reference in New Issue
Block a user