1998-12-24 01:14:13 +00:00
|
|
|
--- scripts/mysql_install_db.sh.orig Wed Dec 9 12:48:04 1998
|
|
|
|
+++ scripts/mysql_install_db.sh Wed Dec 23 23:39:46 1998
|
|
|
|
@@ -11,8 +11,8 @@
|
|
|
|
ldata=@localstatedir@
|
|
|
|
mdata=$ldata/mysql
|
1998-12-22 18:01:44 +00:00
|
|
|
|
1998-12-24 01:14:13 +00:00
|
|
|
-# Are we doing an rpm install?
|
1998-11-21 20:13:52 +00:00
|
|
|
-if test "$1" = "-IN-RPM"; then IN_RPM=1; shift; fi
|
1998-12-22 18:01:44 +00:00
|
|
|
+# pretend we're doing an RPM install
|
|
|
|
+IN_RPM=1
|
1998-03-16 02:46:42 +00:00
|
|
|
|
1998-11-21 20:13:52 +00:00
|
|
|
if test ! -x @libexecdir@/mysqld
|
1998-10-22 07:47:41 +00:00
|
|
|
then
|
1998-12-24 01:14:13 +00:00
|
|
|
@@ -27,8 +27,6 @@
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
-# On IRIX hostname is in /usr/bsd so add this to the path
|
|
|
|
-PATH=$PATH:/usr/bsd
|
1998-09-06 19:58:26 +00:00
|
|
|
hostname=`hostname` # Install this too in the user table
|
|
|
|
|
1998-12-24 01:14:13 +00:00
|
|
|
# Check if hostname is valid
|
|
|
|
@@ -44,12 +42,9 @@
|
|
|
|
fi
|
|
|
|
|
1998-11-21 20:13:52 +00:00
|
|
|
# Create database directories mysql & test
|
1998-12-22 18:01:44 +00:00
|
|
|
-if test -z "$IN_RPM"
|
|
|
|
-then
|
1998-12-24 01:14:13 +00:00
|
|
|
- if test ! -d $ldata; then mkdir $ldata; fi
|
|
|
|
- if test ! -d $ldata/mysql; then mkdir $ldata/mysql; fi
|
|
|
|
- if test ! -d $ldata/test; then mkdir $ldata/test; fi
|
1998-12-22 18:01:44 +00:00
|
|
|
-fi
|
1998-12-24 01:14:13 +00:00
|
|
|
+if test ! -d $ldata; then mkdir $ldata; fi
|
|
|
|
+if test ! -d $ldata/mysql; then mkdir $ldata/mysql; fi
|
|
|
|
+if test ! -d $ldata/test; then mkdir $ldata/test; fi
|
1998-12-22 18:01:44 +00:00
|
|
|
|
|
|
|
# Initialize variables
|
|
|
|
c_d="" i_d=""
|