From 2cfc10c86a22bc415be0c3710bcbea968aed6b85 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Tue, 3 Sep 2024 16:56:57 +0800 Subject: [PATCH] fix: postinst with environment param --- debbuild/22.04/DEBIAN/postinst | 2 +- debbuild/DEBIAN/postinst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 2ee3ca3..7273d8c 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -84,7 +84,7 @@ systemctl enable captrace.service systemctl daemon-reload # read environment parameter and to do -if [ "$M_PARAM" == "install" -o "$M_PARAM" == "upgrade" ]; then +if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then echo "M parameter: $M_PARAM" if [ -n "$C_PARAM" ]; then echo "C parameter: $C_PARAM" diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 07f2a99..1948d87 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -84,7 +84,7 @@ systemctl enable captrace.service systemctl daemon-reload # read environment parameter and to do -if [ "$M_PARAM" == "install" -o "$M_PARAM" == "upgrade" ]; then +if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then echo "M parameter: $M_PARAM" if [ -n "$C_PARAM" ]; then echo "C parameter: $C_PARAM"