summaryrefslogtreecommitdiff
path: root/cmake/preUninstall.sh
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-07-22 10:34:56 +0800
committerlijia <[email protected]>2024-07-22 13:35:54 +0800
commit2ee4770462185daec28e8bb424c8e188e194c996 (patch)
treec4394242f00311d4d7d7c84011672364c851c691 /cmake/preUninstall.sh
parent6e906a14fee875eff1cac600710f2cedcaaef9b6 (diff)
Initial commitHEADv1.0.1main
Diffstat (limited to 'cmake/preUninstall.sh')
-rw-r--r--cmake/preUninstall.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/preUninstall.sh b/cmake/preUninstall.sh
new file mode 100644
index 0000000..3e54faf
--- /dev/null
+++ b/cmake/preUninstall.sh
@@ -0,0 +1,6 @@
+if [ $1 == 0 ]; then
+ DST=${RPM_INSTALL_PREFIX}/sapp/stellar_plugin
+ sed -i -n '$!N;/ftp_decoder.so/!P;D' ${DST}/spec.toml
+ sed -i '/FTP_ONLOAD/d' ${DST}/spec.toml
+ sed -i '/FTP_UNLOAD/d' ${DST}/spec.toml
+fi