diff --git a/build.sh b/build.sh index 2e8b0aa..758b91c 100755 --- a/build.sh +++ b/build.sh @@ -310,10 +310,10 @@ case "${pkgtype}" in chmod 755 ${DebBuildDir}/DEBIAN/postrm cp -rf ${BuildDir}/* ${DebBuildDir}/ cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static - # replace Chinese charecter + # replace Chinese character find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥]//g' {} + - echo "Replace all chinese charecter." - chmod +x ${DebBuildDir}/usr/local/omc/bin/* + echo "Replace all chinese character." + chmod +x ${DebBuildDir}/usr/local/omc/bin sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: omcuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml dpkg -b ${DebBuildDir} ${ReleasePkgDir}/${DebPkgFile}