From 9218b4bfca7e7d2b14ace075f27d1a80d6c2a3a5 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 1 Jul 2020 11:10:41 +0800 Subject: 创建${RPM_INSTALL_PREFIX}/etc/目录 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/preInstall.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/preInstall.sh b/cmake/preInstall.sh index 8134025..3cac523 100644 --- a/cmake/preInstall.sh +++ b/cmake/preInstall.sh @@ -1,11 +1,12 @@ #!/bin/sh DST=${RPM_INSTALL_PREFIX} mkdir -p ${DST}/plug/protocol/ +mkdir -p ${DST}/etc/ touch ${DST}/plug/conflist.inf touch ${DST}/etc/entrylist.conf if [[ -z `grep -rn 'http.inf' ${DST}/plug/conflist.inf` ]];then sed -i '/\[protocol\]/a\./plug/protocol/http/http.inf' ${DST}/plug/conflist.inf fi -if [[ -z `grep -rn 'HTTP' ${DST}etc/entrylist.conf` ]];then +if [[ -z `grep -rn 'HTTP' ${DST}/etc/entrylist.conf` ]];then echo "HTTP" >> ${DST}/etc/entrylist.conf fi -- cgit v1.2.3