fix: missing omc.conf
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user