From 0a7268c56829a1dd82ef0a9fec1560af564e7147 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Tue, 9 Jul 2024 10:22:29 +0800 Subject: [PATCH] fix: kvdb issue --- rpmbuild/SPECS/omc.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index aa2a4c5..6709a96 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -89,6 +89,7 @@ done # Check if install kvdb if [ ! -e "${RedisBinDir}/kvdb_server" ]; then cp -rf ${DependDir}/kvdb/* / + chmod 755 ${RedisBinDir}/kvdb* fi if [ ! -e "${RedisConfDir}/kvdb.conf" ]; then @@ -162,7 +163,7 @@ sudo systemctl stop restagent.service sudo systemctl stop crontask.service sudo systemctl stop sshsvc.service sudo systemctl stop captrace.service -sudo systemctl stop kvdb.service +#sudo systemctl stop kvdb.service #sudo systemctl stop nginx.service #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf @@ -170,7 +171,7 @@ sudo systemctl disable restagent.service sudo systemctl disable crontask.service sudo systemctl disable sshsvc.service sudo systemctl disable captrace.service -sudo systemctl disable kvdb.service +#sudo systemctl disable kvdb.service sudo systemctl daemon-reload else sudo systemctl daemon-reload @@ -179,7 +180,7 @@ sudo systemctl stop restagent.service sudo systemctl stop crontask.service sudo systemctl stop sshsvc.service sudo systemctl stop captrace.service -sudo systemctl stop kvdb.service +#sudo systemctl stop kvdb.service #sudo systemctl start nginx.service sudo systemctl start kvdb.service sudo systemctl start crontask.service