OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 13-Sep-2004 14:07:05
Branch: HEAD Handle: 2004091313070500
Modified files:
openpkg-src/mysql41 mysql41.spec
Log:
be more descriptive and less confusing during install
Summary:
Revision Changes Path
1.21 +19 -6 openpkg-src/mysql41/mysql41.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/mysql41/mysql41.spec
============================================================================
$ cvs diff -u -r1.20 -r1.21 mysql41.spec
--- openpkg-src/mysql41/mysql41.spec 10 Sep 2004 13:06:59 -0000 1.20
+++ openpkg-src/mysql41/mysql41.spec 13 Sep 2004 12:07:05 -0000 1.21
@@ -40,7 +40,7 @@
Group: Database
License: GPL
Version: %{V_opkg}
-Release: 20040910
+Release: 20040913
# package options
%option with_server yes
@@ -250,15 +250,28 @@
if [ $1 -eq 1 ]; then
# after install, create initial database
$RPM_INSTALL_PREFIX/bin/mysql_install_db \
- --defaults-file=$RPM_INSTALL_PREFIX/etc/mysql/my.cnf
+ --defaults-file=$RPM_INSTALL_PREFIX/etc/mysql/my.cnf >/dev/null 2>&1
chown %{l_rusr}:%{l_rgrp} \
$RPM_INSTALL_PREFIX/etc/mysql/my.cnf \
$RPM_INSTALL_PREFIX/etc/mysql/my.pwd
chown -R %{l_rusr}:%{l_rgrp} $RPM_INSTALL_PREFIX/var/mysql/*
- ( echo "The MySQL package includes automated maintenance procedures"
- echo "that require administrator access to the database. For this"
- echo "to work you must keep a copy (plain text) of the administrator"
- echo "account in '$RPM_INSTALL_PREFIX/etc/mysql/my.pwd'."
+ ( echo "An initial MySQL DB was created. The owner of the database"
+ echo "is the DB user 'root'. Its initial password is empty."
+ echo "After starting MySQL with..."
+ echo ""
+ echo " \$ $RPM_INSTALL_PREFIX/etc/rc mysql start"
+ echo ""
+ echo "...you should change the password as soon as possible with:"
+ echo ""
+ echo " \$ $RPM_INSTALL_PREFIX/bin/mysqladmin \\ "
+ echo " -u root password '<new-password>'"
+ echo ""
+ echo "Additionally, because the MySQL package includes automated"
+ echo "maintenance procedures that require administrator access to"
+ echo "the database, you must maintain a (plain text) copy of the"
+ echo "administrator account name and password:"
+ echo ""
+ echo " \$ vi $RPM_INSTALL_PREFIX/etc/mysql/my.pwd"
) | %{l_rpmtool} msg -b -t notice
fi
if [ $1 -eq 2 ]; then
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]