1
0

fix: update yaml config file issue

This commit is contained in:
2024-11-14 19:45:18 +08:00
parent 6a60d55180
commit 39204e55c0
4 changed files with 7 additions and 6 deletions

5
.gitignore vendored
View File

@@ -22,6 +22,7 @@ build/
release/*
# --> debbuild
debbuild/*
!debbuild/22.04/DEBIAN/postinst
!debbuild/22.04
!debbuild/22.04/DEBIAN/*
!debbuild/DEBIAN/
!debbuild/DEBIAN/*

View File

@@ -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" ]; then
if [ [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" == "restconf.yaml" ] ]; then
${OMCBinDir}/upgconf.sh
fi
fi

View File

@@ -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" ]; then
if [ [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" == "restconf.yaml" ] ]; then
${OMCBinDir}/upgconf.sh
fi
fi

View File

@@ -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" ]; then
if [ [ -e "${OMCBinDir}/upgconf.sh" ] && [ "${CFile}" == "restconf.yaml" ] ]; then
${OMCBinDir}/upgconf.sh
fi
fi