1
0
This commit is contained in:
zhangsz
2025-06-17 09:57:45 +08:00
parent b758a21bab
commit ff0f52efac
5 changed files with 11 additions and 11 deletions

View File

@@ -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"