Clear manifest files too

This commit is contained in:
iliajie
2022-07-17 15:51:28 +03:00
parent 32798e18a4
commit e0a5c4e507

View File

@@ -350,6 +350,7 @@ read answer
printf "\\n"
if [ "\\\$answer" = "y" ]; then
echo "Removing $ucproduct package .."
rm -f /usr/share/$baseproduct/authentic-theme/manifest-*
dpkg --remove --force-depends $product
systemctlcmd=\\\`which systemctl 2>/dev/null\\\`
if [ -x "\\\$systemctlcmd" ]; then
@@ -395,6 +396,7 @@ if [ "\$1" != "upgrade" -a "\$1" != "abort-upgrade" ]; then
# Package is being removed, and no new version of webmin
# has taken it's place. Run uninstalls and stop the server
/etc/$baseproduct/stop >/dev/null 2>&1 </dev/null
rm -f /usr/share/$baseproduct/authentic-theme/manifest-*
if [ "$product" = "webmin" ]; then
(cd /usr/share/$baseproduct ; WEBMIN_CONFIG=/etc/$baseproduct WEBMIN_VAR=/var/$baseproduct LANG= /usr/share/$baseproduct/run-uninstalls.pl) >/dev/null 2>&1 </dev/null
else