fix: 打包脚本主程序路径RestagentDir
This commit is contained in:
6
build.sh
6
build.sh
@@ -42,7 +42,7 @@ Data2htmlBin=data2html
|
||||
NBI_ALARM=nbi_alarm
|
||||
NBI_AGENT=nbi_agent
|
||||
AAAA_AGENT=4a_agent
|
||||
RestagentDir=/usr/local/omc/bin
|
||||
RestagentDir=/home/agtuser/probject/nms_cxy/restagent
|
||||
CrontaskDir=/usr/local/omc/bin
|
||||
SshSvcDir=/usr/local/omc/bin
|
||||
CapTraceDir=/usr/local/omc/bin
|
||||
@@ -153,8 +153,8 @@ case "$1" in
|
||||
chmod 755 ${DebBuildDir}/DEBIAN/postinst
|
||||
chmod 755 ${DebBuildDir}/DEBIAN/postrm
|
||||
cp -rf /home/agtuser/probject/nms_cxy/build/build/* ${DebBuildDir}/
|
||||
#cp -rf /home/agtuser/probject/nms_cxy/build/build/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
||||
#cp -rf /home/agtuser/probject/nms_cxy/build/build/systemd/*.service ${DebBuildDir}/lib/systemd/system/
|
||||
# cp -rf /home/agtuser/probject/nms_cxy/build/build/nginx/* ${DebBuildDir}/etc/nginx/conf.d
|
||||
# cp -rf /home/agtuser/probject/nms_cxy/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
|
||||
|
||||
Reference in New Issue
Block a user