From 6affa5f93e33435b879a8e6578a5d14cd79a88c1 Mon Sep 17 00:00:00 2001 From: zhangsz Date: Mon, 16 Jun 2025 16:33:15 +0800 Subject: [PATCH] fix: ... --- debbuild/22.04/DEBIAN/postinst | 4 ++-- debbuild/DEBIAN/postinst | 4 ++-- rpmbuild/SPECS/omc.spec | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 3c912dc..61a9cd3 100755 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -18,11 +18,11 @@ echo "* To start/stop/restart/status omc service, please run:" echo " sudo systemctl start/stop/restart/status restagent.service" echo " sudo systemctl start/stop/restart/status sshsvc.service" echo " or run: " -echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status" +echo " sudo /usr/local/omc/bin/psapsvc.sh start/stop/restart/status" echo "" cd ${UsrLocalBinDir} -if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi +if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/psapsvc.sh ${OmcDaemon}; fi chmod +rx ${OMCRootDir}/bin/* chmod +rx ${OMCRootDir}/* diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index b6fd4ad..f943fa8 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -18,11 +18,11 @@ echo "* To start/stop/restart/status omc service, please run:" echo " sudo systemctl start/stop/restart/status restagent.service" echo " sudo systemctl start/stop/restart/status sshsvc.service" echo " or run: " -echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status" +echo " sudo /usr/local/omc/bin/psapsvc.sh start/stop/restart/status" echo "" cd ${UsrLocalBinDir} -if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/omcsvc.sh ${OmcDaemon}; fi +if [ ! -e ${OmcDaemon} ]; then ln -s ${OmcBinDir}/psapsvc.sh ${OmcDaemon}; fi chmod +rx ${OMCRootDir}/bin/* chmod +rx ${OMCRootDir}/* diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index cb443d7..f386fde 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -68,7 +68,7 @@ if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p mkdir -p /opt/omc/ftp mkdir -p /opt/omc/ftp/log cd ${UsrLocalBinDir} -if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/omcsvc.sh ${OMCDaemon}; fi +if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/psapsvc.sh ${OMCDaemon}; fi # setting firewall PortList="80 443 44080 44443 33030 22222"