From a2278d066c1ab9cf034f35dea9733631b1bdc8bf Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Thu, 14 Nov 2024 20:52:04 +0800 Subject: [PATCH] fix: .... --- debbuild/22.04/DEBIAN/postinst | 2 +- debbuild/DEBIAN/postinst | 2 +- rpmbuild/SPECS/omc.spec | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 7c08114..59a58ca 100755 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -48,7 +48,7 @@ for CFile in ${CFileList}; do else # mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak # cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir} - if [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" == "restconf.yaml" ]; then + if [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" = "restconf.yaml" ]; then ${OMCBinDir}/upgconf.sh fi fi diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index d3f2940..8f71008 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -48,7 +48,7 @@ for CFile in ${CFileList}; do else # mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak # cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir} - if [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" == "restconf.yaml" ]; then + if [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" = "restconf.yaml" ]; then ${OMCBinDir}/upgconf.sh fi fi diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index 2f6997d..313748d 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -55,7 +55,7 @@ for CFile in ${CFileList}; do else # mv -f ${OMCEtcDir}/${CFile} ${OMCEtcDir}/${CFile}.bak # cp -f ${OMCEtcDir}/default/${CFile} ${OMCEtcDir} - if [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" == "restconf.yaml" ]; then + if [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" = "restconf.yaml" ]; then ${OMCBinDir}/upgconf.sh fi fi