#!/bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/mariadb-client - deinstall script # # Creation : 2017-05-07 holbru # Last update: $Id$ # # Copyright (c) 2017-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # set package name package_name=mariadb-client # check for update is given if [ "${1}" = "--update" ] then update=true fi # --------------------------------------------------------------------------- # remove plugins from libmariadb-plugins # --------------------------------------------------------------------------- version="$(/usr/bin/gawk -F'/' '/plugin/ {print $4}' /etc/filelist.d/${package_name}-files.txt | /usr/bin/uniq)" /usr/bin/find /usr/lib/mysql/${version}/plugin -maxdepth 1 -type l -exec rm {} \; exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------