From 723234dae5a23d103cc2a85b73e55a9107975d8d Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Tue, 31 Oct 2023 17:43:11 +0800 Subject: [PATCH] fix: restart nginx after install --- debbuild/22.04/DEBIAN/postinst | 3 ++- debbuild/DEBIAN/postinst | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index d7abe47..e5ae80a 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -66,7 +66,8 @@ fi if [ ! -e "${NginxConfDir}/omc.conf" ]; then mkdir -p ${NginxConfDir} cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir}; -fi +fi +sudo systemctl restart nginx.service sudo systemctl restart adb.service sudo systemctl restart restagent.service sudo systemctl restart crontask.service diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 14f4557..7395dff 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -65,7 +65,8 @@ fi if [ ! -e "${NginxConfDir}/omc.conf" ]; then mkdir -p ${NginxConfDir} cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir}; -fi +fi +sudo systemctl restart nginx.service sudo systemctl restart adb.service sudo systemctl restart restagent.service sudo systemctl restart crontask.service