fix: postinst with environment param
This commit is contained in:
@@ -84,7 +84,7 @@ systemctl enable captrace.service
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
# read environment parameter and to do
|
# 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"
|
echo "M parameter: $M_PARAM"
|
||||||
if [ -n "$C_PARAM" ]; then
|
if [ -n "$C_PARAM" ]; then
|
||||||
echo "C parameter: $C_PARAM"
|
echo "C parameter: $C_PARAM"
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ systemctl enable captrace.service
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
# read environment parameter and to do
|
# 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"
|
echo "M parameter: $M_PARAM"
|
||||||
if [ -n "$C_PARAM" ]; then
|
if [ -n "$C_PARAM" ]; then
|
||||||
echo "C parameter: $C_PARAM"
|
echo "C parameter: $C_PARAM"
|
||||||
|
|||||||
Reference in New Issue
Block a user