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
PROJECT = OMC
VERSION = 2.2311.7
VERSION = 2.2311.8
PLATFORM = amd64
ARMPLATFORM = aarch64
BUILDDIR = ../../build

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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