diff options
Diffstat (limited to 'cmake/preInstall.sh')
| -rw-r--r-- | cmake/preInstall.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/preInstall.sh b/cmake/preInstall.sh new file mode 100644 index 0000000..01bfff9 --- /dev/null +++ b/cmake/preInstall.sh @@ -0,0 +1,11 @@ +#!/bin/sh +DST=${RPM_INSTALL_PREFIX} +mkdir -p ${DST}/plug/protocol/ +touch ${DST}/plug/conflist.inf +touch ${DST}/etc/entrylist.conf +if [[ -z `grep -rn 'ssl.inf' ${DST}/plug/conflist.inf` ]];then + sed -i '/\[protocol\]/a\./plug/protocol/ssl/ssl.inf' ${DST}/plug/conflist.inf +fi +if [[ -z `grep -rn 'SSL' ${DST}/etc/entrylist.conf` ]];then + echo "SSL" >> ${DST}/etc/entrylist.conf +fi |
