diff options
| -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 |
