Remove for Usermin only, as Webmin runs uninstalls

This commit is contained in:
iliajie
2022-07-17 21:10:47 +03:00
parent af58e37bea
commit fa4b624187

View File

@@ -396,10 +396,10 @@ 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
rm -f /usr/share/$baseproduct/authentic-theme/manifest-*
systemctlcmd=\`which systemctl 2>/dev/null\`
if [ -x "\$systemctlcmd" ]; then
\$systemctlcmd stop $product >/dev/null 2>&1 </dev/null