fix: active and rollback pkg issue

This commit is contained in:
2024-01-18 09:17:30 +08:00
parent b305761396
commit 01f65b85b5
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ extension=$(basename "${1}" | awk -F . '{print $NF}')
case "${extension}" in case "${extension}" in
deb) deb)
if [ neType == "OMC" ]; then if [ ${neType} == "OMC" ]; then
systemctl stop restagent.service systemctl stop restagent.service
fi fi
expect <<EOF expect <<EOF
@@ -18,7 +18,7 @@ case "${extension}" in
EOF EOF
;; ;;
rpm) rpm)
if [ neType == "OMC" ]; then if [ ${neType} == "OMC" ]; then
systemctl stop restagent.service systemctl stop restagent.service
fi fi
expect <<EOF expect <<EOF

View File

@@ -6,7 +6,7 @@ extension=$(basename "${1}" | awk -F . '{print $NF}')
case "${extension}" in case "${extension}" in
deb) deb)
if [ neType == "OMC" ]; then if [ ${neType} == "OMC" ]; then
systemctl stop restagent.service systemctl stop restagent.service
fi fi
expect <<EOF expect <<EOF
@@ -18,7 +18,7 @@ case "${extension}" in
EOF EOF
;; ;;
rpm) rpm)
if [ neType == "OMC" ]; then if [ ${neType} == "OMC" ]; then
systemctl stop restagent.service systemctl stop restagent.service
fi fi
expect <<EOF expect <<EOF