update sh
This commit is contained in:
6
build.sh
6
build.sh
@@ -310,10 +310,10 @@ case "${pkgtype}" in
|
|||||||
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
||||||
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
||||||
cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static
|
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' {} +
|
find "${DebBuildOMCDir}/etc/db" -type f -name '*.sql' -exec sed -i 's/[一-龥]//g' {} +
|
||||||
echo "Replace all chinese charecter."
|
echo "Replace all chinese character."
|
||||||
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
|
chmod +x ${DebBuildDir}/usr/local/omc/bin
|
||||||
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
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
|
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}
|
dpkg -b ${DebBuildDir} ${ReleasePkgDir}/${DebPkgFile}
|
||||||
|
|||||||
Reference in New Issue
Block a user