#!/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 # # LIBINST=`grep "/opt/MySQL/lib/mysql" /etc/ld.so.conf` if [ ! "$LIBINST" ]; then echo "/opt/MySQL/lib/mysql" >>/etc/ld.so.conf if [ -d /opt/MySQL/lib64 ]; then echo "/opt/MySQL/lib64/mysql" >>/etc/ld.so.conf fi fi if ! getent passwd mysql 2>&1 >/dev/null; then useradd -u 48 -g daemon -d /opt/MySQL/var -s /bin/bash mysql fi mkdir /opt/MySQL/var /opt/MySQL/bin/mysql_install_db chown -R mysql:daemon /opt/MySQL/var