From 287c26201d591e6cc8ba4e9c21ecf78994330e14 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Thu, 11 Jan 2024 14:54:27 +0800 Subject: [PATCH] fix: postinst update --- debbuild/22.04/DEBIAN/postinst | 42 +++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 6a47c85..1f89c27 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -37,12 +37,6 @@ if [ ! -e libwsutil.so.13 ]; then ln -s libwsutil.so.13.1.0 libwsutil.so.13; fi if [ ! -e libwsutil.so ]; then ln -s libwsutil.so.13.1.0 libwsutil.so; fi cd ${UsrLocalBinDir} if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi -systemctl enable restagent.service -systemctl enable crontask.service -systemctl enable sshsvc.service -systemctl enable captrace.service -systemctl enable adb.service -systemctl daemon-reload chmod +rx /usr/local/omc/bin/* chmod +rx /usr/local/omc/* @@ -82,16 +76,28 @@ if [ -e "${NginxSiteAvailable}/default" ]; then sed -i 's/listen 80 default_server;/listen 1080 default_server;/g' ${NginxSiteAvailable}/default sed -i 's/listen \[::\]:80 default_server;/listen \[::\]:1080 default_server;/g' ${NginxSiteAvailable}/default fi -sudo systemctl stop nginx.service -sudo systemctl stop restagent.service -sudo systemctl stop crontask.service -sudo systemctl stop sshsvc.service -sudo systemctl stop captrace.service -sudo systemctl stop adb.service -sudo systemctl start nginx.service -sudo systemctl start adb.service -sudo systemctl start crontask.service -sudo systemctl start sshsvc.service -sudo systemctl start captrace.service -sudo systemctl start restagent.service +systemctl enable restagent.service +systemctl enable crontask.service +systemctl enable sshsvc.service +systemctl enable captrace.service +systemctl enable adb.service +systemctl daemon-reload +sudo systemctl restart nginx.service +sudo systemctl restart adb.service +sudo systemctl restart crontask.service +sudo systemctl restart sshsvc.service +sudo systemctl restart captrace.service +sudo systemctl restart restagent.service +#sudo systemctl stop nginx.service +#sudo systemctl stop restagent.service +#sudo systemctl stop crontask.service +#sudo systemctl stop sshsvc.service +#sudo systemctl stop captrace.service +#sudo systemctl stop adb.service +##sudo systemctl start nginx.service +#sudo systemctl start adb.service +#sudo systemctl start crontask.service +#sudo systemctl start sshsvc.service +#sudo systemctl start captrace.service +#sudo systemctl start restagent.service