From f3088ad7d046e27accdbb367aefc4ce5fb23c103 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Sat, 31 May 2025 14:53:16 +0300 Subject: [PATCH] Fix a bug that prevented the uninstall script from running --- makemoduledeb.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makemoduledeb.pl b/makemoduledeb.pl index 05638480f..b7a51a223 100755 --- a/makemoduledeb.pl +++ b/makemoduledeb.pl @@ -535,7 +535,7 @@ if [ "$istheme" = "1" -a "\$1" != "upgrade" ]; then fi fi # Run the pre-uninstall script, if we are not upgrading -if [ "$product" = "webmin" -a "\$1" = "0" -a -r "/usr/share/$product/$mod/uninstall.pl" ]; then +if [ "$product" = "webmin" -a "\$1" != "upgrade" -a -r "/usr/share/$product/$mod/uninstall.pl" ]; then cd /usr/share/$product WEBMIN_CONFIG=/etc/$product WEBMIN_VAR=/var/$product /usr/share/$product/run-uninstalls.pl $mod fi