commit mysql fix, now that I've had time to look at it

This commit is contained in:
espie 2000-11-03 00:54:09 +00:00
parent 574e0d76bc
commit 268b897aa8
2 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,5 @@
--- scripts/mysql_install_db.sh.orig Sun Sep 19 07:16:46 1999
+++ scripts/mysql_install_db.sh Mon Jan 3 14:23:05 2000
--- scripts/mysql_install_db.sh.orig Wed Jan 12 15:06:30 2000
+++ scripts/mysql_install_db.sh Thu Nov 2 09:11:00 2000
@@ -15,10 +15,6 @@
force=0
IN_RPM=0
@ -33,6 +33,15 @@
# Check if hostname is valid
if test "$IN_RPM" -eq 0 -a $force -eq 0
@@ -89,7 +77,7 @@
# Create database directories mysql & test
if test "$IN_RPM" -eq 0
then
- if test ! -d $ldata; then mkdir $ldata; chmod 700 $ldata ; fi
+ if test ! -d $ldata; then mkdir $ldata; chmod 711 $ldata ; fi
if test ! -d $ldata/mysql; then mkdir $ldata/mysql; chmod 700 $ldata/mysql ; fi
if test ! -d $ldata/test; then mkdir $ldata/test; chmod 700 $ldata/test ; fi
if test -w / -a ! -z "$user"; then
@@ -255,12 +243,6 @@
END_OF_DATA
then

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.11 2000/11/02 15:15:24 espie Exp $
# $OpenBSD: INSTALL,v 1.12 2000/11/03 00:54:09 espie Exp $
#
# Pre/post-installation setup of MySQL
@ -47,7 +47,7 @@ do_pre_install()
do_post_install()
{
install -d -o mysql -g mysql -m 700 $DB_DIR
install -d -o mysql -g mysql -m 711 $DB_DIR
# The shell is switched back to /bin/sh to ensure that the database
# creation can proceed successfully