This commit is contained in:
2023-09-19 10:46:32 +08:00
parent bc50f10c24
commit 302a93b199
2 changed files with 5 additions and 1 deletions

View File

@@ -110,7 +110,11 @@ deb: $(BINNAME)
#sed -i.bak 's/YYYYMMDD/$(shell date +"%Y%m%d")/g' $(DebBuildDir)/DEBIAN/control
sed -i 's/YYYYMMDD/$(shell date +"%Y%m%d")/g' $(DebBuildDir)/DEBIAN/control
sed -i '73 s/user: root/user: agtuser/g' $(DebBuildDir)/usr/local/omc/etc/default/restconf.yaml
ifeq ($(shell lsb_release -r --short), 22.04)
dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(PROJECT)-$(VERSION)-22.04-$(Release).$(PLATFORM).deb
else
dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(PROJECT)-$(VERSION)-$(Release).$(PLATFORM).deb
endif
rpm: $(BINNAME)
cp -rf $(RestagentDir)/$(RESTAGENT) $(BuildOMCBinDir)