fix: change to 2.2311.8

This commit is contained in:
2023-11-20 16:36:37 +08:00
parent d2d557109d
commit fd37d68a05
8 changed files with 23 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
# Makefile for rest agent project # Makefile for rest agent project
PROJECT = OMC PROJECT = OMC
VERSION = 2.2311.7 VERSION = 2.2311.8
PLATFORM = amd64 PLATFORM = amd64
ARMPLATFORM = aarch64 ARMPLATFORM = aarch64
BUILDDIR = ../../build BUILDDIR = ../../build

View File

@@ -1,7 +1,7 @@
# Makefile for OMC-OMC-crontask project # Makefile for OMC-OMC-crontask project
PROJECT = OMC PROJECT = OMC
VERSION = 2.2311.7 VERSION = 2.2311.8
LIBDIR = ems.agt/lib LIBDIR = ems.agt/lib
BINNAME = crontask BINNAME = crontask

View File

@@ -1,7 +1,7 @@
# Makefile for rest agent project # Makefile for rest agent project
PROJECT = OMC PROJECT = OMC
VERSION = 2.2311.7 VERSION = 2.2311.8
RelDate = `date +%Y%m%d` RelDate = `date +%Y%m%d`
Release = $(RelDate) Release = $(RelDate)
RelVer = $(VERSION)-$(RelDate) RelVer = $(VERSION)-$(RelDate)

View File

@@ -3,7 +3,7 @@
ProjectL = omc ProjectL = omc
ProjectU = OMC ProjectU = OMC
PROJECT = $(ProjectL) PROJECT = $(ProjectL)
VERSION = 2.2311.7 VERSION = 2.2311.8
RelDate = `date +%Y%m%d` RelDate = `date +%Y%m%d`
Release = $(RelDate) Release = $(RelDate)
RelVer = $(VERSION)-$(RelDate) RelVer = $(VERSION)-$(RelDate)

View File

@@ -2,7 +2,7 @@
ProcList="restagent crontask sshsvc captrace data2html" ProcList="restagent crontask sshsvc captrace data2html"
ProjectL=omc ProjectL=omc
VERSION=2.2311.7 VERSION=2.2311.8
RelDate=`date +%Y%m%d` RelDate=`date +%Y%m%d`
Release=$RelDate Release=$RelDate
RelVer=$VERSION-$RelDate RelVer=$VERSION-$RelDate

View File

@@ -1,7 +1,7 @@
# Makefile for rest agent project # Makefile for rest agent project
PROJECT = OMC PROJECT = OMC
VERSION = 2.2311.7 VERSION = 2.2311.8
PLATFORM = amd64 PLATFORM = amd64
ARMPLATFORM = aarch64 ARMPLATFORM = aarch64
BUILDDIR = ../../build BUILDDIR = ../../build

View File

@@ -1,7 +1,7 @@
# Makefile for OMC-OMC-crontask project # Makefile for OMC-OMC-crontask project
PROJECT = OMC PROJECT = OMC
VERSION = 2.2311.7 VERSION = 2.2311.8
LIBDIR = ems.agt/lib LIBDIR = ems.agt/lib
BINNAME = sshsvc BINNAME = sshsvc

View File

@@ -1,19 +1,21 @@
#!/bin/bash #!/bin/bash
DepPkgDir=./omc-dep-pkg DepPkgDir=/tmp/omc-dep-pkg
lines=22 #这个值是指这个脚本的行数加1指向程序所在开始行
if [ $1 != "" ]; then tail +$lines $0 >/tmp/omc-dep-pkg.tar.gz # 利用tail命令把脚本指定行出到文件$0表示脚本本身名称$0是环境变量这个命令用来把从$lines开始的内容写入一个/tmp目录的tar.gz文件里。
DepPkgDir=$1 echo -n "Decompressing omc depend package ..."
echo "done"
tar xvfz /tmp/omc-dep-pkg.tar.gz -C /tmp 1>/dev/null
if [ ! -e ${DepPkgDir} ]; then
echo "${DepPkgDir}: Not such file or directory"
exit 1
fi fi
if [ -e ${DepPkgDir} ]; then echo -n "Installing omc depend package ..."
echo "${DepPkgDir}: Not such file or directory" for pkgdir in ${DepPkgDir}/*; do
exit 1 #echo "Installing ${pkgdir} depend package ..."
fi cd ${pkgdir};
echo "Install omc depend package" dpkg -i --ignore-depends *.deb 1>/tmp/${pkgdir}.log 2>&1;
for pkgdir in ${DepPkgDir}/*; do
echo "Installing ${pkgdir} depend package ..."
cd ${pkgdir};
dpkg -i --ignore-depends= *.deb;
done done
echo "done"
rm -rf /tmp/omc-dep-pkg*
exit 0 exit 0