chore: 打包restconf.yaml配置文件改名omc.yaml

This commit is contained in:
TsMask committed 2024-03-19 20:25:59 +08:00
1 parent 30326c1e53
commit 7e8360dcb4
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ cd ./omc
go mod download
# 调试启动
go run omc.go -c ./omc/etc/restconf.yaml --env local
go run omc.go -c ./omc/etc/omc.yaml --env local
# 打包命名 omc
go build -ldflags="-s -w" -o omc
+1 -1
View File
@@ -156,7 +156,7 @@ case "$1" in
# cp -rf ${EmsBEDir}/build/build/systemd/*.service ${DebBuildDir}/lib/systemd/system/
chmod +x ${DebBuildDir}/usr/local/omc/bin/*
sed -i "s/YYYYMMDD/${RelDate}/g" ${DebBuildDir}/DEBIAN/control
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: agtuser/g' ${DebBuildDir}/usr/local/omc/etc/default/restconf.yaml
perl -0777 -i -pe 's/ne:\n user: root/ne:\n user: agtuser/g' ${DebBuildDir}/usr/local/omc/etc/default/omc.yaml
dpkg -b ${DebBuildDir} ${ReleaseDebs}/${DebPkgFile}
cd $ReleaseDir/"$1"s/$RelArch
+1 -1
View File
@@ -11,7 +11,7 @@ OmcDaemon=omcd
NginxEtcDir=/etc/nginx
NginxConfDir=${NginxEtcDir}/conf.d
NginxSiteAvailable=${NginxEtcDir}/sites-available
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml"
CFileList="omc.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml"
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
echo ""
+1 -1
View File
@@ -50,7 +50,7 @@ case "${M_ARG}" in
done
cp -rf ${CustomizedDir}/logo/* ${OMCStaticDir}/logo
cp -rf ${CustomizedDir}/doc/* ${OMCStaticDir}/helpDoc
perl -0777 -i -pe 's/agtuser/bluearcus/g' ${OMCRootDir}/etc/default/restconf.yaml
perl -0777 -i -pe 's/agtuser/bluearcus/g' ${OMCRootDir}/etc/default/omc.yaml
perl -0777 -i -pe 's/agtuser/bluearcus/g' ${OMCBinDir}/nehosts
fi
;;
+1 -1
View File
@@ -72,7 +72,7 @@ OMCStaticDir=/usr/local/omc/static
UsrLocalBinDir=/usr/local/bin
OmcDaemon=omcd
NginxEtcDir=/etc/nginx
CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml"
CFileList="omc.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml"
LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png"
for CFile in ${CFileList}; do
if [ ! -e "${OMCEtcDir}/${CFile}" ]; then
+1 -1
View File
@@ -326,7 +326,7 @@ func GetDefaultUserAgent() string {
return "OMC/" + global.Version
}
// const defaultConfigFile = "./etc/restconf.yaml"
// const defaultConfigFile = "./etc/omc.yaml"
// func init() {
// cfile := flag.String("c", defaultConfigFile, "config file")