[sysadmin-bin] delete cache files created by ftpadmin



commit 31effb2a2c6d6d4faf02dbff7c28f4e63572835f
Author: Olav Vitters <olav vitters nl>
Date:   Sun Mar 20 16:26:37 2011 +0100

    delete cache files created by ftpadmin

 install-module |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/install-module b/install-module
index 7be2995..df98f87 100755
--- a/install-module
+++ b/install-module
@@ -85,6 +85,8 @@ MODULE=$(echo $FILENAME | sed "s#\([A-Za-z0-9\_\+\-]*\)-[[:digit:]].*#\1#")
 VERSION=$(echo $FILENAME | sed "s#$MODULE-\(.*\)#\1#i")
 MAJMIN=$(echo $VERSION | sed "s#\([[:digit:]]\+\.[[:digit:]]\+\).*#\1#")
 LOCATION=$FTPROOT/sources/$MODULE/$MAJMIN
+JSON=$FTPROOT/sources/$MODULE/$MODULE.json
+JSON2=$FTPROOT/sources/$MODULE/info.json
 URL="$URLROOT/sources/$MODULE/$MAJMIN/$FILENAME"
 WHO="$(getent passwd $USER | cut -d : -f 5 | cut -d , -f 1 | sed 's, <.*,,')"
 if [ -z "$WHO" ]; then
@@ -317,6 +319,8 @@ echo "
 # Finished!
 echo "done."
 
+# Delete ftpadmin cache files
+rm -f -- "$JSON" "$JSON2"
 
 #
 # Send ftp-release-list email



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]