fix: postinst with environment param

This commit is contained in:
simonzhangsz committed 2024-09-03 16:56:57 +08:00
1 parent ba9fec53f9
commit 2cfc10c86a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"