From 99adcc22b7b876628a452511caa39a9dd94f537a Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 17 Jan 2024 10:40:35 +0800 Subject: [PATCH] fix: omc installation issue --- debbuild/22.04/DEBIAN/postinst | 30 ++++++++++++++++++------------ debbuild/22.04/DEBIAN/postrm | 24 ++++++++++++------------ debbuild/DEBIAN/postinst | 30 ++++++++++++++++++------------ debbuild/DEBIAN/postrm | 24 ++++++++++++------------ 4 files changed, 60 insertions(+), 48 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 8d704bf..8c6db06 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -83,16 +83,22 @@ systemctl enable sshsvc.service systemctl enable captrace.service systemctl enable adb.service systemctl daemon-reload -#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 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 +#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 diff --git a/debbuild/22.04/DEBIAN/postrm b/debbuild/22.04/DEBIAN/postrm index 2993dd8..f27c0d5 100644 --- a/debbuild/22.04/DEBIAN/postrm +++ b/debbuild/22.04/DEBIAN/postrm @@ -8,19 +8,19 @@ rm libwiretap.so.12 rm libwiretap.so rm libwsutil.so.13 rm libwsutil.so -#systemctl stop nginx.service -#systemctl stop restagent.service -#systemctl stop crontask.service -#systemctl stop sshsvc.service -#systemctl stop captrace.service -#systemctl stop adb.service +systemctl stop nginx.service +systemctl stop restagent.service +systemctl stop crontask.service +systemctl stop sshsvc.service +systemctl stop captrace.service +systemctl stop adb.service #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf -#systemctl disable restagent.service -#systemctl disable crontask.service -#systemctl disable sshsvc.service -#systemctl disable captrace.service -#systemctl disable adb.service -#systemctl daemon-reload \ No newline at end of file +systemctl disable restagent.service +systemctl disable crontask.service +systemctl disable sshsvc.service +systemctl disable captrace.service +systemctl disable adb.service +systemctl daemon-reload \ No newline at end of file diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 02e954a..7241552 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -83,16 +83,22 @@ systemctl enable sshsvc.service systemctl enable captrace.service systemctl enable adb.service systemctl daemon-reload -#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 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 +#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 diff --git a/debbuild/DEBIAN/postrm b/debbuild/DEBIAN/postrm index 2993dd8..f27c0d5 100644 --- a/debbuild/DEBIAN/postrm +++ b/debbuild/DEBIAN/postrm @@ -8,19 +8,19 @@ rm libwiretap.so.12 rm libwiretap.so rm libwsutil.so.13 rm libwsutil.so -#systemctl stop nginx.service -#systemctl stop restagent.service -#systemctl stop crontask.service -#systemctl stop sshsvc.service -#systemctl stop captrace.service -#systemctl stop adb.service +systemctl stop nginx.service +systemctl stop restagent.service +systemctl stop crontask.service +systemctl stop sshsvc.service +systemctl stop captrace.service +systemctl stop adb.service #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf -#systemctl disable restagent.service -#systemctl disable crontask.service -#systemctl disable sshsvc.service -#systemctl disable captrace.service -#systemctl disable adb.service -#systemctl daemon-reload \ No newline at end of file +systemctl disable restagent.service +systemctl disable crontask.service +systemctl disable sshsvc.service +systemctl disable captrace.service +systemctl disable adb.service +systemctl daemon-reload \ No newline at end of file