1
0

fix:omc.cof dir

This commit is contained in:
2023-10-31 17:54:59 +08:00
parent 723234dae5
commit 8e6bd419fb

View File

@@ -7,6 +7,7 @@ X86Lib64Dir=/lib/x86_64-linux-gnu
OmcBinDir=/usr/local/omc/bin OmcBinDir=/usr/local/omc/bin
UsrLocalBinDir=/usr/local/bin UsrLocalBinDir=/usr/local/bin
OmcDaemon=omcd OmcDaemon=omcd
NginxConfDir=/etc/nginx/conf.d
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml" CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml"
echo "" echo ""
@@ -63,7 +64,7 @@ else
echo "user omc exist"; echo "user omc exist";
fi fi
if [ ! -e "${NginxConfDir}/omc.conf" ]; then if [ ! -e "${NginxConfDir}/omc.conf" ]; then
mkdir -p ${NginxConfDir} mkdir -p ${NginxConfDir}
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir}; cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
fi fi
sudo systemctl restart nginx.service sudo systemctl restart nginx.service