1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/databases/mysql40-server/files/patch-ab
Dirk Froemberg 11a329e5b3 Upgrade to 3.22.11-beta.
Submitted by:	Alec Wolman <wolman@cs.washington.edu>
1998-12-22 18:01:44 +00:00

30 lines
966 B
Plaintext

--- scripts/mysql_install_db.sh.orig Sun Nov 22 04:57:20 1998
+++ scripts/mysql_install_db.sh Sun Dec 6 23:58:49 1998
@@ -10,8 +10,8 @@
mdata=@localstatedir@/mysql
-# Are we are doing a rpm install?
-if test "$1" = "-IN-RPM"; then IN_RPM=1; shift; fi
+# pretend we're doing an RPM install
+IN_RPM=1
if test ! -x @libexecdir@/mysqld
then
@@ -31,12 +31,9 @@
hostname=`hostname` # Install this too in the user table
# Create database directories mysql & test
-if test -z "$IN_RPM"
-then
- if test ! -d @localstatedir@; then mkdir @localstatedir@; fi
- if test ! -d @localstatedir@/mysql; then mkdir @localstatedir@/mysql; fi
- if test ! -d @localstatedir@/test; then mkdir @localstatedir@/test; fi
-fi
+if test ! -d @localstatedir@; then mkdir @localstatedir@; fi
+if test ! -d @localstatedir@/mysql; then mkdir @localstatedir@/mysql; fi
+if test ! -d @localstatedir@/test; then mkdir @localstatedir@/test; fi
# Initialize variables
c_d="" i_d=""