fix: postinst with environment param
This commit is contained in:
1 parent
ba9fec53f9
commit
2cfc10c86a
2 files changed
+2
-2
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user