mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Remove for Usermin only, as Webmin runs uninstalls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user