1
0

fix: missing omc.conf

This commit is contained in:
2023-10-31 17:30:45 +08:00
parent 6935124f29
commit 5058bea561
2 changed files with 9 additions and 0 deletions

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 ""
@@ -62,6 +63,10 @@ if ! id -u omc >/dev/null 2>&1 ; then
else
echo "user omc exist";
fi
if [ ! -e "${NginxConfDir}/omc.conf" ]; then
mkdir -p ${NginxConfDir}
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
fi
sudo systemctl restart adb.service
sudo systemctl restart restagent.service
sudo systemctl restart crontask.service

View File

@@ -62,6 +62,10 @@ if ! id -u omc >/dev/null 2>&1 ; then
else
echo "user omc exist";
fi
if [ ! -e "${NginxConfDir}/omc.conf" ]; then
mkdir -p ${NginxConfDir}
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
fi
sudo systemctl restart adb.service
sudo systemctl restart restagent.service
sudo systemctl restart crontask.service