From 6cc8fd4daf14eedd5ec56d8a479b72dc404edfd7 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Sat, 16 Sep 2023 15:36:08 +0800 Subject: [PATCH] trace --- debbuild/DEBIAN/postinst | 8 ++++++++ debbuild/DEBIAN/postrm | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index cd2a7f3..18843ca 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -3,6 +3,7 @@ RedisConfDir=/usr/local/db/bin/conf OMCEtcDir=/usr/local/omc/etc FERootDir=/usr/local/omc/htdocs/front +X86Lib64Dir=/lib/x86_64-linux-gnu CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml" echo "" @@ -16,6 +17,13 @@ echo " or run: " echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status" echo "" +cd ${X86Lib64Dir} +ln -s libwireshark.so.15.0.12 libwireshark.so.15 +ln -s libwireshark.so.15.0.12 libwireshark.so +ln -s libwiretap.so.12.0.12 libwiretap.so.12 +ln -s libwiretap.so.12.0.12 libwiretap.so +ln -s libwsutil.so.13.1.0 libwsutil.so.13 +ln -s libwsutil.so.13.1.0 libwsutil.so systemctl enable restagent.service systemctl enable crontask.service systemctl enable sshsvc.service diff --git a/debbuild/DEBIAN/postrm b/debbuild/DEBIAN/postrm index 59ec179..baccea8 100644 --- a/debbuild/DEBIAN/postrm +++ b/debbuild/DEBIAN/postrm @@ -1,5 +1,13 @@ # !/bin/sh +X86Lib64Dir=/lib/x86_64-linux-gnu +cd ${X86Lib64Dir} +rm libwireshark.so.15 +rm libwireshark.so +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