diff options
| author | 刘学利 <[email protected]> | 2020-10-12 15:41:11 +0800 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2020-10-12 15:41:11 +0800 |
| commit | 57ab95aa6245d86844c4a5b67706166cfdef3a2d (patch) | |
| tree | 48c09ad5113d972966a85c6fbb2740a6d8adbfea /cmake/preUninstall.sh | |
| parent | 324cedb28a2558be9c5e80eb76fb9e703b669967 (diff) | |
| parent | 4dbcec9be01e61dd5b93ea4eb09ebee9d8408398 (diff) | |
Merge branch 'develop-export-version' into 'master'v1.0.1
Develop export version
See merge request PanGu/ntc_radius_plug!2
Diffstat (limited to 'cmake/preUninstall.sh')
| -rw-r--r-- | cmake/preUninstall.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/preUninstall.sh b/cmake/preUninstall.sh new file mode 100644 index 0000000..decc015 --- /dev/null +++ b/cmake/preUninstall.sh @@ -0,0 +1,12 @@ +#!/bin/sh +if [ $1 == 0 ]; then + CONFILE=conf/radius/radius.conf + DST=${RPM_INSTALL_PREFIX} + + mkdir -p ${DST}/plug/business/ + touch ${DST}/plug/conflist.inf + touch ${DST}/${CONFILE} + + sed -i '/fw_mail_plug.inf/d' ${DST}/plug/conflist.inf + sed -i '/\[RADIUS_PLUG\]/,+7d' ${DST}/${CONFILE} +fi |
