Compare commits
27 Commits
lichang
...
9bf9ac6479
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9bf9ac6479 | ||
|
|
ff0f52efac | ||
|
|
b758a21bab | ||
|
|
aa974c21dc | ||
|
|
6affa5f93e | ||
|
|
1b531f3556 | ||
|
|
4ebbbbf1f3 | ||
|
|
f0688a4273 | ||
|
|
e3319048ea | ||
|
|
0f90394faa | ||
|
|
79c5378bc3 | ||
|
|
e1cc70a0b8 | ||
|
|
1d29e002f3 | ||
|
|
fdcf8be579 | ||
|
|
e2ee082cb8 | ||
|
|
150d7aadbc | ||
|
|
4215a73c8c | ||
|
|
e1f4eb6267 | ||
|
|
17591b1705 | ||
|
|
5d9425c457 | ||
|
|
d8624c2fe9 | ||
|
|
cb8692cf44 | ||
|
|
cc45dd1be3 | ||
|
|
56d62831eb | ||
|
|
246fb027cd | ||
|
|
7818759109 | ||
|
|
48d5a0a783 |
@@ -1,14 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 [OPTION] deb|badeb|rpm"
|
echo "Usage: $0 [OPTION] deb|badeb|rpm|psapdeb"
|
||||||
echo
|
echo
|
||||||
echo "Build omc package, option as follow:"
|
echo "Build omc package, option as follow:"
|
||||||
echo " deb|badeb|rpm, deb: ubuntu|debian package build by dpkg"
|
echo " deb|badeb|rpm, deb: ubuntu|debian package build by dpkg"
|
||||||
echo " badeb: ubuntu|debian package build by dpkg"
|
echo " badeb: ubuntu|debian package build by dpkg"
|
||||||
echo " rpm: centos/redhat package, build by rpmbuild"
|
echo " rpm: centos/redhat package, build by rpmbuild"
|
||||||
|
echo " psapdeb psap package, build by dpkg"
|
||||||
|
echo
|
||||||
echo " -r, =build root directory build root directory, default directory is $HOME/omc.git"
|
echo " -r, =build root directory build root directory, default directory is $HOME/omc.git"
|
||||||
echo " -d dump SQL from database"
|
echo " -d dump SQL from database"
|
||||||
|
echo " -h, --help display this help and exit"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16,7 +19,7 @@ pkgtype=""
|
|||||||
new_args=()
|
new_args=()
|
||||||
# Traverse all parameters
|
# Traverse all parameters
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
if [[ "$arg" == "deb" || "$arg" == "badeb" || "$arg" == "rpm" ]]; then
|
if [[ "$arg" == "deb" || "$arg" == "badeb" || "$arg" == "rpm" || "$arg" == "psapdeb" ]]; then
|
||||||
pkgtype=$arg
|
pkgtype=$arg
|
||||||
else
|
else
|
||||||
new_args+=("$arg") # Add non pkgtype parameters to a new parameter list
|
new_args+=("$arg") # Add non pkgtype parameters to a new parameter list
|
||||||
@@ -31,7 +34,7 @@ fi
|
|||||||
# Use a new parameter list
|
# Use a new parameter list
|
||||||
set -- "${new_args[@]}"
|
set -- "${new_args[@]}"
|
||||||
|
|
||||||
GitLocalRoot=${HOME}/omc.git
|
GitLocalRoot=${HOME}/${ProjectL}.git
|
||||||
while getopts "r:d" option; do
|
while getopts "r:d" option; do
|
||||||
case $option in
|
case $option in
|
||||||
r)
|
r)
|
||||||
@@ -53,10 +56,10 @@ if [ ! -d ${GitLocalRoot} ]; then
|
|||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ProjectL=omc
|
ProjectL=psap
|
||||||
ProjectU=OMC
|
ProjectU=PSAP
|
||||||
PROJECT=${ProjectL}
|
PROJECT=${ProjectL}
|
||||||
VERSION=2.2502.3
|
VERSION=1.2506.2
|
||||||
RelDate=`date +%Y%m%d`
|
RelDate=`date +%Y%m%d`
|
||||||
RelVer=${VERSION}-${RelDate}
|
RelVer=${VERSION}-${RelDate}
|
||||||
Ky10Arch=ky10.aarch64
|
Ky10Arch=ky10.aarch64
|
||||||
@@ -163,6 +166,12 @@ case $(get_os_info) in
|
|||||||
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
|
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
|
||||||
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
||||||
;;
|
;;
|
||||||
|
kylin|anolis)
|
||||||
|
ptype=rpm
|
||||||
|
RelOS=ky
|
||||||
|
RpmPkgName=${ProjectL}-${RelVer}.${RpmArch}.${ptype}
|
||||||
|
RpmPkgRename=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported OS"
|
echo "Unsupported OS"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -211,15 +220,15 @@ case "${pkgtype}" in
|
|||||||
chmod 755 ${BuildOMCBinDir}/*
|
chmod 755 ${BuildOMCBinDir}/*
|
||||||
cp -rf ${BuildDir}/* ${RpmBuildDir}/BUILD/
|
cp -rf ${BuildDir}/* ${RpmBuildDir}/BUILD/
|
||||||
cp -rf ${CustomizedDir}/agt.d ${RpmBuildOMCDir}/static
|
cp -rf ${CustomizedDir}/agt.d ${RpmBuildOMCDir}/static
|
||||||
cp -rf ${CustomizedDir}/omc.d ${RpmBuildOMCDir}/static
|
cp -rf ${CustomizedDir}/psap.d ${RpmBuildOMCDir}/static
|
||||||
cd ${RpmBuildDir}
|
cd ${RpmBuildDir}
|
||||||
rpmbuild -bb -D "_topdir ${RpmBuildDir}" ${RpmBuildDir}/SPECS/omc.spec
|
rpmbuild -bb -D "_topdir ${RpmBuildDir}" ${RpmBuildDir}/SPECS/omc.spec
|
||||||
|
|
||||||
mv -f $RpmsDir/$RpmArch/$RpmPkgName ${ReleasePkgDir}/$RpmPkgRename
|
mv -f $RpmsDir/$RpmArch/$RpmPkgName ${ReleasePkgDir}/$RpmPkgRename
|
||||||
cd ${ReleasePkgDir}
|
cd ${ReleasePkgDir}
|
||||||
rm -f omc-md5sum.txt
|
rm -f ${ProjectL}-md5sum.txt
|
||||||
# rpm --addsign *.rpm
|
# rpm --addsign *.rpm
|
||||||
md5sum $RpmPkgRename >omc-md5sum.txt
|
md5sum $RpmPkgRename >${ProjectL}-md5sum.txt
|
||||||
echo "Finish to make ${pkgtype} package <======"
|
echo "Finish to make ${pkgtype} package <======"
|
||||||
;;
|
;;
|
||||||
deb)
|
deb)
|
||||||
@@ -270,7 +279,7 @@ case "${pkgtype}" in
|
|||||||
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
||||||
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
||||||
cp -rf ${CustomizedDir}/agt.d ${DebBuildOMCDir}/static
|
cp -rf ${CustomizedDir}/agt.d ${DebBuildOMCDir}/static
|
||||||
cp -rf ${CustomizedDir}/omc.d ${DebBuildOMCDir}/static
|
cp -rf ${CustomizedDir}/psap.d ${DebBuildOMCDir}/static
|
||||||
#cp -rf ${BuildDir}/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
#cp -rf ${BuildDir}/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
||||||
#cp -rf ${BuildDir}/systemd/*.service ${DebBuildDir}/lib/systemd/system/
|
#cp -rf ${BuildDir}/systemd/*.service ${DebBuildDir}/lib/systemd/system/
|
||||||
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
|
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
|
||||||
@@ -332,7 +341,7 @@ case "${pkgtype}" in
|
|||||||
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
||||||
cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static
|
cp -rf ${CustomizedDir}/ba.d ${DebBuildOMCDir}/static
|
||||||
# replace Chinese character
|
# 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 character."
|
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
|
||||||
@@ -345,6 +354,66 @@ case "${pkgtype}" in
|
|||||||
md5sum ${DebPkgName} >omc-md5sum.txt
|
md5sum ${DebPkgName} >omc-md5sum.txt
|
||||||
echo "Finish to make ${pkgtype} package <======"
|
echo "Finish to make ${pkgtype} package <======"
|
||||||
;;
|
;;
|
||||||
|
psapdeb)
|
||||||
|
ProjectL="psap"
|
||||||
|
echo "Begin to make ${pkgtype} package ======>"
|
||||||
|
ReleasePkgDir=${ReleaseDir}/debs/${RelArch}
|
||||||
|
ProcList="restagent"
|
||||||
|
cd $EmsBEDir
|
||||||
|
for procName in $ProcList;do
|
||||||
|
cd $EmsBEDir/$procName
|
||||||
|
echo "Make $procName ..."
|
||||||
|
make
|
||||||
|
done
|
||||||
|
|
||||||
|
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}.${ptype}
|
||||||
|
if [ ! $ProjectTag = "" ]; then
|
||||||
|
DebPkgFile=${ProjectL}-r${RelVer}-${RelOS}-${RelArch}-${ProjectTag}.${ptype}
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ${EmsBEDir}
|
||||||
|
|
||||||
|
#make deb
|
||||||
|
# clear build cache
|
||||||
|
rm -rf ${FrontBuildDir}/front/*
|
||||||
|
rm -rf ${DebFEBuildDir}/front/*
|
||||||
|
rm -rf ${DebBuildDir}/usr/local/omc/etc/db/*
|
||||||
|
rm -rf ${DebBuildOMCDir}/static/*
|
||||||
|
|
||||||
|
for procName in $ProcList;do
|
||||||
|
cd $EmsBEDir/$procName
|
||||||
|
cp -rf ${procName} ${BuildOMCBinDir}
|
||||||
|
done
|
||||||
|
|
||||||
|
cp -rf ${MiscDir}/* ${BuildOMCBinDir}
|
||||||
|
cp -rf ${ConfigEtcDir}/* ${BuildOMCEtcDir}
|
||||||
|
rm -rf ${BuildOMCEtcDir}/db/*
|
||||||
|
cp -rf ${DBSQLSrcDir}/* ${BuildOMCEtcDir}/db/
|
||||||
|
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/install
|
||||||
|
cp -rf ${BuildOMCEtcDir}/db/common/* ${BuildOMCEtcDir}/db/upgrade
|
||||||
|
#Get SQL from database, overwrite from git
|
||||||
|
cp -rf ${ConfigSystemdDir}/* ${BuildLibSystemDir}
|
||||||
|
cp -rf ${EmsFEVue3Dir}/* ${FrontBuildDir}/front >/dev/null
|
||||||
|
chmod 755 ${BuildOMCBinDir}/*
|
||||||
|
chmod 755 ${DebBuildDir}/DEBIAN/preinst
|
||||||
|
chmod 755 ${DebBuildDir}/DEBIAN/postinst
|
||||||
|
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
||||||
|
cp -rf ${BuildDir}/* ${DebBuildDir}/
|
||||||
|
cp -rf ${CustomizedDir}/agt.d ${DebBuildOMCDir}/static
|
||||||
|
cp -rf ${CustomizedDir}/psap.d ${DebBuildOMCDir}/static
|
||||||
|
#cp -rf ${BuildDir}/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
||||||
|
#cp -rf ${BuildDir}/systemd/*.service ${DebBuildDir}/lib/systemd/system/
|
||||||
|
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
|
||||||
|
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
|
||||||
|
sed -i "s/Architecture: amd64/Architecture: ${RelArch}/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}
|
||||||
|
|
||||||
|
cd ${ReleasePkgDir}
|
||||||
|
rm -f omc-md5sum.txt
|
||||||
|
md5sum ${DebPkgName} >omc-md5sum.txt
|
||||||
|
echo "Finish to make ${pkgtype} package <======="
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
exit 4
|
exit 4
|
||||||
@@ -11,12 +11,19 @@ usage() {
|
|||||||
echo " -m, =be|fe|all be: only process back-end code, default if non input"
|
echo " -m, =be|fe|all be: only process back-end code, default if non input"
|
||||||
echo " fe: only process front-end code"
|
echo " fe: only process front-end code"
|
||||||
echo " all: process all include be and fe"
|
echo " all: process all include be and fe"
|
||||||
echo " -c, =ba ba: customized for BA OMC"
|
echo " -c, =ba|psap ba: customized for BA OMC, psap: customized for PSAP Portal"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkgtype=""
|
pkgtype=""
|
||||||
new_args=()
|
new_args=()
|
||||||
be_args=()
|
be_args=()
|
||||||
|
|
||||||
|
handle_invalid_option() {
|
||||||
|
echo "Invalid option: -$1" >&2
|
||||||
|
usage
|
||||||
|
exit 2
|
||||||
|
}
|
||||||
|
|
||||||
# Traverse all parameters
|
# Traverse all parameters
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
if [[ "$arg" == "deb" || "$arg" == "rpm" ]]; then
|
if [[ "$arg" == "deb" || "$arg" == "rpm" ]]; then
|
||||||
@@ -54,12 +61,15 @@ while getopts "m:r:c:d" option; do
|
|||||||
if [ "${c_arg}" == "ba" ]; then
|
if [ "${c_arg}" == "ba" ]; then
|
||||||
pkgtype="badeb"
|
pkgtype="badeb"
|
||||||
be_args+=("${pkgtype}")
|
be_args+=("${pkgtype}")
|
||||||
fi
|
elif [ "${c_arg}" == "psap" ]; then
|
||||||
|
pkgtype="psapdeb"
|
||||||
|
be_args+=("${pkgtype}")
|
||||||
|
else
|
||||||
|
handle_invalid_option "$OPTARG"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
handle_invalid_option "$OPTARG"
|
||||||
usage
|
|
||||||
exit 2
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -91,8 +101,8 @@ makefe() {
|
|||||||
if [ "${pkgtype}" == "badeb" ]; then
|
if [ "${pkgtype}" == "badeb" ]; then
|
||||||
cp -rf ${customizeddir}/images/* ${feassetsdir}
|
cp -rf ${customizeddir}/images/* ${feassetsdir}
|
||||||
cp -rf ${customizeddir}/locales/* ${felocalesdir}
|
cp -rf ${customizeddir}/locales/* ${felocalesdir}
|
||||||
find "${feconstantsdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥]//g' {} +
|
find "${feconstantsdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} +
|
||||||
find "${fehooksdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥]//g' {} +
|
find "${fehooksdir}" -type f -name '*.ts' -exec sed -i 's/[一-龥()“”,。?!]~·]//g' {} +
|
||||||
fi
|
fi
|
||||||
npm install --force --registry https://registry.npmmirror.com
|
npm install --force --registry https://registry.npmmirror.com
|
||||||
echo -n "Building front-end vue ... "
|
echo -n "Building front-end vue ... "
|
||||||
@@ -107,21 +117,29 @@ makefe() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
makebe() {
|
makebe() {
|
||||||
cd ${builddir}
|
cd ${builddir}/bin
|
||||||
#chmod +x mkpkg.sh
|
#chmod +x mkpkg.sh
|
||||||
chmod +x build.sh
|
chmod +x build.sh
|
||||||
./build.sh ${be_args[@]}
|
./build.sh ${be_args[@]}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_makepkg() {
|
||||||
|
cd ${builddir}
|
||||||
|
git checkout debbuild/DEBIAN/
|
||||||
|
git checkout debbuild/22.04/DEBIAN/
|
||||||
|
}
|
||||||
|
|
||||||
case "${m_arg}" in
|
case "${m_arg}" in
|
||||||
fe)
|
fe)
|
||||||
makefe
|
makefe
|
||||||
;;
|
;;
|
||||||
all)
|
all)
|
||||||
makefe
|
makefe
|
||||||
makebe
|
makebe
|
||||||
|
post_makepkg
|
||||||
;;
|
;;
|
||||||
be | *)
|
be | *)
|
||||||
makebe
|
makebe
|
||||||
|
post_makepkg
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -44,7 +44,7 @@ database:
|
|||||||
password: 1000omc@kp!
|
password: 1000omc@kp!
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 33066
|
port: 33066
|
||||||
name: omc_db
|
name: psap_db
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
||||||
backup: /usr/local/omc/database
|
backup: /usr/local/omc/database
|
||||||
|
|
||||||
@@ -57,12 +57,6 @@ redis:
|
|||||||
host: "127.0.0.1" # Redis host
|
host: "127.0.0.1" # Redis host
|
||||||
password: "helloearth"
|
password: "helloearth"
|
||||||
db: 10 # Redis db_num
|
db: 10 # Redis db_num
|
||||||
# UDM sub/auth db
|
|
||||||
udmuser:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1"
|
|
||||||
password: "helloearth"
|
|
||||||
db: 0 # Redis db_num
|
|
||||||
# used to specify the default data source for multiple data resourece
|
# used to specify the default data source for multiple data resourece
|
||||||
defaultDataSourceName: "default"
|
defaultDataSourceName: "default"
|
||||||
|
|
||||||
@@ -78,7 +72,7 @@ mml:
|
|||||||
|
|
||||||
# Tracking configuration
|
# Tracking configuration
|
||||||
trace:
|
trace:
|
||||||
enabled: true
|
enabled: false
|
||||||
host: "172.16.5.100" # Fill in the specific IP address
|
host: "172.16.5.100" # Fill in the specific IP address
|
||||||
port: 33033
|
port: 33033
|
||||||
|
|
||||||
@@ -109,7 +103,9 @@ omc:
|
|||||||
vendor: ""
|
vendor: ""
|
||||||
dn: ""
|
dn: ""
|
||||||
chk2ne: false
|
chk2ne: false
|
||||||
|
capability: 50
|
||||||
sn: "-"
|
sn: "-"
|
||||||
|
expiryDate: "-"
|
||||||
checksign: false
|
checksign: false
|
||||||
rootDir: /usr/local/omc
|
rootDir: /usr/local/omc
|
||||||
binDir: /usr/local/omc/bin
|
binDir: /usr/local/omc/bin
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ database:
|
|||||||
password: 1000omc@kp!
|
password: 1000omc@kp!
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 33066
|
port: 33066
|
||||||
name: omc_db
|
name: psap_db
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
||||||
|
|
||||||
omc:
|
omc:
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', '
|
|||||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
||||||
|
|
||||||
--
|
--
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'AGrand PSAP', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024 千通科技', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2025 千通科技', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'AGrand EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'AGrand PSAP', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024 AGrandTech', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2025 AGrandTech', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
|
|
||||||
-- set internationalization switching to ON
|
-- set internationalization switching to ON
|
||||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
SET FOREIGN_KEY_CHECKS = 0;
|
|
||||||
|
|
||||||
--
|
|
||||||
REPLACE INTO `sys_config` VALUES (6, 'config.sys.officialUrl', 'sys.officialUrl', 'https://www.bluearcus.com', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.officialUrlRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (106, 'config.sys.title', 'sys.title', 'config.sys.titleValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.titleRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (107, 'config.sys.copyright', 'sys.copyright', 'config.sys.copyrightValue', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.copyrightRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', 'false', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nOpenRemark');
|
|
||||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
|
||||||
|
|
||||||
--
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024 BlueArcus', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'BlueArcus EMS', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024 BlueArcus', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
|
||||||
|
|
||||||
-- set internationalization switching to ON
|
|
||||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
|
||||||
UPDATE `sys_menu` SET `status` = '0' WHERE `menu_id` = 2122;
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
|
||||||
|
Before Width: | Height: | Size: 216 KiB |
|
Before Width: | Height: | Size: 216 KiB |
@@ -1,2 +0,0 @@
|
|||||||
export default {
|
|
||||||
};
|
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
@@ -8,10 +8,10 @@ REPLACE INTO `sys_config` VALUES (108, 'config.sys.i18nOpen', 'sys.i18n.open', '
|
|||||||
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
REPLACE INTO `sys_config` VALUES (109, 'config.sys.i18nDefault', 'sys.i18n.default', 'en_US', 'Y', 'supervisor', 1700000000000, NULL, 0, 'config.sys.i18nDefaultRemark');
|
||||||
|
|
||||||
--
|
--
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'OMC', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (1660, 1660, 'config.sys.titleValue', 'PSAP', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (1661, 1661, 'config.sys.copyrightValue', 'Copyright ©2024 PSAP', 'i18n_zh', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'OMC', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (3660, 3660, 'config.sys.titleValue', 'PSAP', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
REPLACE INTO `sys_dict_data` VALUES (3661, 3661, 'config.sys.copyrightValue', 'Copyright ©2024 PSAP', 'i18n_en', NULL, NULL, '1', 'supervisor', 1700000000000, NULL, 0, NULL);
|
||||||
|
|
||||||
-- set internationalization switching to ON
|
-- set internationalization switching to ON
|
||||||
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
-- REPLACE INTO `omc_db`.`sys_role_menu` (`role_id`, `menu_id`) VALUES (2, 2122);
|
||||||
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
customized/psap.d/logo/en_icon.png
Executable file
|
After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
customized/psap.d/logo/zh_icon.png
Executable file
|
After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -1,8 +1,9 @@
|
|||||||
Package: OMC
|
Package: PSAP
|
||||||
Version: 2.2502.3-YYYYMMDD
|
Version: 1.2506.2-20250616
|
||||||
Section: AGrandTech
|
Section: AGrandTech
|
||||||
Prioritt: optional
|
Prioritt: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Maintainer: Simon Zhangsz
|
Maintainer: Simon Zhangsz
|
||||||
Depends:
|
Depends:
|
||||||
Description: OMC
|
Description: psap
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ fi
|
|||||||
|
|
||||||
for LogoFile in ${LogoFileList}; do
|
for LogoFile in ${LogoFileList}; do
|
||||||
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
||||||
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
cp ${OMCStaticDir}/psap.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Starting OMC service ... "
|
echo -n "Starting PSAP service ... "
|
||||||
systemctl start sshsvc.service
|
systemctl start sshsvc.service
|
||||||
systemctl start restagent.service
|
systemctl start restagent.service
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ rm -f /usr/local/bin/omcd
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
||||||
echo -n "Stopping OMC service ... "
|
echo -n "Stopping PSAP service ... "
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
||||||
echo -n "Stopping OMC service ... "
|
echo -n "Stopping PSAP service ... "
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ database:
|
|||||||
password: 1000omc@kp!
|
password: 1000omc@kp!
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 33066
|
port: 33066
|
||||||
name: omc_db
|
name: psap_db
|
||||||
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
|
||||||
backup: /usr/local/omc/database
|
backup: /usr/local/omc/database
|
||||||
|
|
||||||
@@ -57,12 +57,6 @@ redis:
|
|||||||
host: "127.0.0.1" # Redis host
|
host: "127.0.0.1" # Redis host
|
||||||
password: "helloearth"
|
password: "helloearth"
|
||||||
db: 10 # Redis db_num
|
db: 10 # Redis db_num
|
||||||
# UDM sub/auth db
|
|
||||||
udmuser:
|
|
||||||
port: 6379 # Redis port
|
|
||||||
host: "127.0.0.1"
|
|
||||||
password: "helloearth"
|
|
||||||
db: 0 # Redis db_num
|
|
||||||
# used to specify the default data source for multiple data resourece
|
# used to specify the default data source for multiple data resourece
|
||||||
defaultDataSourceName: "default"
|
defaultDataSourceName: "default"
|
||||||
|
|
||||||
@@ -78,7 +72,7 @@ mml:
|
|||||||
|
|
||||||
# Tracking configuration
|
# Tracking configuration
|
||||||
trace:
|
trace:
|
||||||
enabled: true
|
enabled: false
|
||||||
host: "172.16.5.100" # Fill in the specific IP address
|
host: "172.16.5.100" # Fill in the specific IP address
|
||||||
port: 33033
|
port: 33033
|
||||||
|
|
||||||
@@ -109,7 +103,9 @@ omc:
|
|||||||
vendor: ""
|
vendor: ""
|
||||||
dn: ""
|
dn: ""
|
||||||
chk2ne: false
|
chk2ne: false
|
||||||
|
capability: 50
|
||||||
sn: "-"
|
sn: "-"
|
||||||
|
expiryDate: "-"
|
||||||
checksign: false
|
checksign: false
|
||||||
rootDir: /usr/local/omc
|
rootDir: /usr/local/omc
|
||||||
binDir: /usr/local/omc/bin
|
binDir: /usr/local/omc/bin
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Package: OMC
|
Package: OMC
|
||||||
Version: 2.2502.3-YYYYMMDD
|
Version: 1.2506.2-YYYYMMDD
|
||||||
Section: AGrandTech
|
Section: AGrandTech
|
||||||
Prioritt: optional
|
Prioritt: optional
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ fi
|
|||||||
|
|
||||||
for LogoFile in ${LogoFileList}; do
|
for LogoFile in ${LogoFileList}; do
|
||||||
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
||||||
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
cp ${OMCStaticDir}/psap.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Starting OMC service ... "
|
echo -n "Starting PSAP service ... "
|
||||||
systemctl start sshsvc.service
|
systemctl start sshsvc.service
|
||||||
systemctl start restagent.service
|
systemctl start restagent.service
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ rm -f /usr/local/bin/omcd
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
||||||
echo -n "Stopping OMC service ... "
|
echo -n "Stopping PSAP service ... "
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
||||||
echo -n "Stopping OMC service ... "
|
echo -n "Stopping PSAP service ... "
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|||||||
BIN
docs/requirement/PSAP-OPENAPI说明文档.docx
Normal file
BIN
docs/requirement/PSAP门户网站-20250319-V1.xlsx
Normal file
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: %{project_lname}
|
Name: %{project_lname}
|
||||||
Summary: 5GC OMC
|
Summary: 5GC OMC
|
||||||
Version: 2.2502.3
|
Version: 1.2506.2
|
||||||
Release: %{release_date}
|
Release: %{release_date}
|
||||||
Vendor: omc
|
Vendor: omc
|
||||||
URL: https://www.omc.com/
|
URL: https://www.omc.com/
|
||||||
@@ -61,7 +61,7 @@ done
|
|||||||
if [ ! -e "${FERootDir}/config.js" ]; then cp ${FERootDir}/default/config.js ${FERootDir}; fi
|
if [ ! -e "${FERootDir}/config.js" ]; then cp ${FERootDir}/default/config.js ${FERootDir}; fi
|
||||||
for LogoFile in ${LogoFileList}; do
|
for LogoFile in ${LogoFileList}; do
|
||||||
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then
|
||||||
cp ${OMCStaticDir}/omc.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
cp ${OMCStaticDir}/psap.d/logo/${LogoFile} ${OMCStaticDir}/logo;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi
|
if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi
|
||||||
|
|||||||