diff options
| author | liuxueli <[email protected]> | 2020-07-01 11:10:41 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-07-01 11:10:41 +0800 |
| commit | 9218b4bfca7e7d2b14ace075f27d1a80d6c2a3a5 (patch) | |
| tree | 8ac873472d1eedf9b911190c343808af30508227 /cmake | |
| parent | 090de2caba5bf909c8722ceda43515c397e03354 (diff) | |
创建${RPM_INSTALL_PREFIX}/etc/目录v2.0.3
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/preInstall.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
