fix: restart nginx after install
This commit is contained in:
@@ -66,7 +66,8 @@ 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 adb.service
|
sudo systemctl restart adb.service
|
||||||
sudo systemctl restart restagent.service
|
sudo systemctl restart restagent.service
|
||||||
sudo systemctl restart crontask.service
|
sudo systemctl restart crontask.service
|
||||||
|
|||||||
@@ -65,7 +65,8 @@ 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 adb.service
|
sudo systemctl restart adb.service
|
||||||
sudo systemctl restart restagent.service
|
sudo systemctl restart restagent.service
|
||||||
sudo systemctl restart crontask.service
|
sudo systemctl restart crontask.service
|
||||||
|
|||||||
Reference in New Issue
Block a user