11850 adding auto delete deprecated files to rpms

This commit is contained in:
rafael 2023-08-08 14:51:32 +02:00
parent c23851a1dc
commit e88a990164
1 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,14 @@ else
echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
fi
# Delete old dprecated files
if [ -f %{prefix}/pandora_console/extras/delete_files/delete_files.txt ] ; then
echo "Deleting old deprecated files"
cd %{prefix}/pandora_console/
rm -rf `cat extras/delete_files/delete_files.txt`
cd -
fi
%preun
# Upgrading