From ee3f65a3023af0fa5206b7e644a9205a8269092f Mon Sep 17 00:00:00 2001 From: kueller Date: Wed, 3 Jun 2009 18:30:45 +0000 Subject: [PATCH] Weitere packages mit postremove scripten versehen git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_mysql@4791 504e572c-2e33-0410-9681-be2bf7408885 --- tmp/postremove | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 tmp/postremove diff --git a/tmp/postremove b/tmp/postremove new file mode 100644 index 0000000..aa7b5d2 --- /dev/null +++ b/tmp/postremove @@ -0,0 +1,65 @@ +#!/bin/bash +#Framework, welches ein komplettes Linux System aus den Sourcen erstellt +#dieses Framework wird im CVS Repository +#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt +# +#Lage dieser Datei im Archiv: $Source$ +# +#(c) Rainmaker MultiMedia OHG +#This program is free software; you can redistribute it and/or +#modify ist 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. +# +#This program is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +#See the GNU General Public License for more details. +# +#You should have received a copy of the GNU General Public License +#along with this program; if not write to the Free Software Foundation, +#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +#Beschreibung: +#postinstall für mySQL. Erzeugt die notwendigen Einträge unter +#/etc/ld.so.conf. Ausserdem wird eine mySQL Datenbank initialisiert. +# +#Aufrufparameter: +#keine +# +#Letzte Änderung von: $Author$ +#Datum der letzten Änderung: $Date$ +#Version der Datei: $Revision$ +# +#$Log$ +#Revision 1.11 2007/04/29 11:59:52 kueller +#UID 48 fuer mysql festgelegt +# +#Revision 1.10 2006/10/20 09:06:38 kueller +#Anpassung an 32/64 Bit Viitor +# +#Revision 1.9 2005/09/02 09:46:20 kueller +#die dbinit darf inzwischen unter root laufen und stelle keine Fragen mehr +#Der bisherige aufruf hat sogar komplet ./var geloescht. Dadurch ist mysql +#gar nicht mehr gestartet. +# +#Revision 1.8 2005/09/02 07:54:44 kueller +#mysql_install heisst in der neuen Version mysql_install_db +# +#Revision 1.7 2003/11/11 11:20:09 kueller +#installation wird nun von mysql_install erledigt. Script entsprechend geändert +# +#Revision 1.6 2002/10/09 08:33:18 kueller +#Einsatz des neuen GPL Monsum Projekt Headers +# +# +#Revision 1.5 2001/10/08 08:51:50 kueller +#cvs header hinzugefügt bzw. korrigiert +# +# + +sed -i -e "/\/opt\/MySQL\/lib\/mysql/d" /etc/ld.so.conf +sed -i -e "/\/opt\/MySQL\/lib64\/mysql/d" /etc/ld.so.conf +if getent passwd mysql 2>&1 >/dev/null; then + userdel mysql +fi