mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Clear manifest files too
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user