From edf42e7f7813ec74eacdcf4bfd7cc07e8b7b0e78 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Wed, 6 Jan 2016 10:07:05 -0700 Subject: [PATCH] update install script to remove old packages --- plugins/shellinabox-plugin.plg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/shellinabox-plugin.plg b/plugins/shellinabox-plugin.plg index 1d0471e4..ac84cb91 100755 --- a/plugins/shellinabox-plugin.plg +++ b/plugins/shellinabox-plugin.plg @@ -108,6 +108,10 @@ fi # Update file permissions of scripts chmod +0755 &emhttp;/scripts/* +# Cleaning old source files +find &plgpath;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete +find &plgpath;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete + echo "" echo "-----------------------------------------------------------" echo " &name; has been installed."