update install script to remove old packages

This commit is contained in:
Derek Macias 2016-01-06 10:07:05 -07:00
parent 75d1d8741e
commit edf42e7f78

View File

@ -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."