1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/databases/mysql51-server/files/patch-ab

43 lines
1.2 KiB
Plaintext
Raw Normal View History

--- scripts/mysql_install_db.sh.orig Fri Jan 1 15:33:33 1999
+++ scripts/mysql_install_db.sh Wed Jan 6 00:10:55 1999
@@ -13,8 +13,8 @@
execdir=@libexecdir@
bindir=@bindir@
1998-12-24 01:14:13 +00:00
-# Are we doing an rpm install?
-if test "$1" = "-IN-RPM"; then IN_RPM=1; shift; fi
+# pretend we're doing an RPM install
+IN_RPM=1
# Get mysqld/safe_mysqld options from /etc/my.cnf or ~/.my.cnf
if test -w /
@@ -57,8 +57,6 @@
1998-12-24 01:14:13 +00:00
fi
fi
-# On IRIX hostname is in /usr/bsd so add this to the path
-PATH=$PATH:/usr/bsd
hostname=`hostname` # Install this too in the user table
1998-12-24 01:14:13 +00:00
# Check if hostname is valid
@@ -74,14 +72,11 @@
1998-12-24 01:14:13 +00:00
fi
# Create database directories mysql & test
-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
- if test -w / -a ! -z "$user"; then
- chown $user $ldata $ldata/mysql $ldata/test;
- 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
+if test -w / -a ! -z "$user"; then
+ chown $user $ldata $ldata/mysql $ldata/test;
fi
# Initialize variables