- Changed the NotifyUrl in PostMeasureTaskToNF to use a hardcoded port (33030). - Updated GetEMSState to retrieve the port from the server configuration instead of the YAML config. - Removed deprecated RestParam struct and related code from YamlConfig. - Deleted old certificate files (omc-server.crt, omc-server.key, omc-web.crt, omc-web.key). - Added new certificate files (www.omc.net.crt, www.omc.net.key) for updated server configuration. - Modified local/omc.yaml to reflect changes in server configuration and certificate paths. - Updated main.go to load server configuration instead of rest configuration, ensuring proper handling of multiple HTTP services.
build
打包添加到构建工具的 /tmp/usr/local/etc/omc 目录内
文件资源
| 路径 | 说明 |
|---|---|
| database | 数据库 |
| default | 默认配置文件 |
| vendor | 各厂商的定制修改 |
编译发布
# =================== Vendor Database
echo
ApiDir=/root/omc.git/be.ems
BuildDir=/root/omc.git/build.ems
dirs="database default vendor"
for v in ${dirs}; do
path=$BuildDir/tmp/usr/local/etc/omc
rm -rf ${path}/${v}
cp -rf ${ApiDir}/build/${v} ${path}/${v}
done