From 1b531f3556e50156eb8e4368c5723d3d32a2198b Mon Sep 17 00:00:00 2001 From: zhangsz Date: Mon, 16 Jun 2025 16:22:18 +0800 Subject: [PATCH] fix: changed omcd to psapd --- debbuild/22.04/DEBIAN/postinst | 2 +- debbuild/22.04/DEBIAN/postrm | 2 +- debbuild/DEBIAN/postinst | 2 +- debbuild/DEBIAN/postrm | 2 +- rpmbuild/SPECS/omc.spec | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index ae64e37..3c912dc 100755 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -7,7 +7,7 @@ FERootDir=${OMCRootDir}/htdocs/front OmcBinDir=${OMCRootDir}/bin OMCStaticDir=${OMCRootDir}/static UsrLocalBinDir=/usr/local/bin -OmcDaemon=omcd +OmcDaemon=psapd NginxEtcDir=/etc/nginx NginxConfDir=${NginxEtcDir}/conf.d CFileList="restconf.yaml sshsvc.yaml omc.conf" diff --git a/debbuild/22.04/DEBIAN/postrm b/debbuild/22.04/DEBIAN/postrm index 4fbf476..74d908d 100755 --- a/debbuild/22.04/DEBIAN/postrm +++ b/debbuild/22.04/DEBIAN/postrm @@ -2,7 +2,7 @@ #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf -rm -f /usr/local/bin/omcd +rm -f /usr/local/bin/psapd systemctl daemon-reload diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index bd22d22..b6fd4ad 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -7,7 +7,7 @@ FERootDir=${OMCRootDir}/htdocs/front OmcBinDir=${OMCRootDir}/bin OMCStaticDir=${OMCRootDir}/static UsrLocalBinDir=/usr/local/bin -OmcDaemon=omcd +OmcDaemon=psapd NginxEtcDir=/etc/nginx NginxConfDir=${NginxEtcDir}/conf.d CFileList="restconf.yaml sshsvc.yaml omc.conf" diff --git a/debbuild/DEBIAN/postrm b/debbuild/DEBIAN/postrm index 4fbf476..74d908d 100644 --- a/debbuild/DEBIAN/postrm +++ b/debbuild/DEBIAN/postrm @@ -2,7 +2,7 @@ #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf -rm -f /usr/local/bin/omcd +rm -f /usr/local/bin/psapd systemctl daemon-reload diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index ef954b9..cb443d7 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -36,7 +36,7 @@ FERootDir=${OMCRootDir}/htdocs/front OMCBinDir=${OMCRootDir}/bin OMCStaticDir=${OMCRootDir}/static UsrLocalBinDir=/usr/local/bin -OMCDaemon=omcd +OMCDaemon=psapd NginxEtcDir=/etc/nginx CFileList="restconf.yaml sshsvc.yaml omc.conf" LogoFileList="zh_brand.png zh_icon.png en_brand.png en_icon.png" @@ -105,7 +105,7 @@ echo "done" # 卸载时执行 %postun UsrLocalBinDir=/usr/local/bin -rm -f ${UsrLocalBinDir}/omcd +rm -f ${UsrLocalBinDir}/psapd # setting firewall PortList="80 443 44080 44443 33030 22222"