Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
6.1.1
-
None
-
Ubuntu, Debian
Description
apt remove <columnstore pkg> will fail if MariaDB is already removed
In mariadb-plugin-columnstore.postrm, we find
# Automatically restart MariaDB after ColumnStore plugin has been removed
|
case "$1" in |
purge|remove|disappear)
|
if [ -d /run/systemd/system ]; then |
# If systemd
|
deb-systemd-invoke restart mariadb.service >/dev/null |
elif [ -x "/etc/init.d/mariadb" ]; then |
# Fall-back to SysV init
|
invoke-rc.d mariadb restart || exit $?
|
fi
|
;;
|
esac
|
If MariaDB is not functional, this fails and apt remove is aborted, making it impossible to remove the package