From 7bc5b4d5e6354f1e2fe85304395860c691e57a71 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Thu, 19 Oct 2023 13:00:08 +0800 Subject: [PATCH] fix: redis config dir --- debbuild/22.04/DEBIAN/postinst | 2 +- rpmbuild/SPECS/omc.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 53c8928..fbe5c0f 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -51,7 +51,7 @@ done if [ ! -e "${RedisConfDir}/redis.conf" ]; then cp ${RedisConfDir}/default/redis.conf ${RedisConfDir}; else - sed -i 's/replica-read-only yes/replica-read-only no/g' $(RedisConfDir)/redis.conf + sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/redis.conf fi if [ ! -e "${FERootDir}/config.js" ]; then cp ${FERootDir}/default/config.js ${FERootDir}; diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index e6d7955..6df8e4d 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -79,7 +79,7 @@ done if [ ! -e "${RedisConfDir}/redis.conf" ]; then cp ${RedisConfDir}/default/redis.conf ${RedisConfDir}; else - sed -i 's/replica-read-only yes/replica-read-only no/g' $(RedisConfDir)/redis.conf + sed -i 's/replica-read-only yes/replica-read-only no/g' ${RedisConfDir}/redis.conf fi if [ ! -e "${FERootDir}/config.js" ]; then cp ${FERootDir}/default/config.js ${FERootDir}; fi if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi