1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/databases/mysql40-server/files/patch-ab

30 lines
966 B
Plaintext
Raw Normal View History

--- 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=""