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