Fix a bug that prevented the uninstall script from running

This commit is contained in:
Ilia Ross
2025-05-31 14:53:16 +03:00
parent d51076b219
commit f3088ad7d0

View File

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