make the capitalization of the word "mysql" consistant depending on
whether it's refering to the account/group or the program MySQL.
This commit is contained in:
parent
8e0553c5aa
commit
c2a3cc0809
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $OpenBSD: INSTALL,v 1.2 2000/01/04 17:39:43 brad Exp $
|
# $OpenBSD: INSTALL,v 1.3 2000/02/06 23:32:38 brad Exp $
|
||||||
#
|
#
|
||||||
# Pre/post-installation setup of MySQL
|
# Pre/post-installation setup of MySQL
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ MYSQLGID=40
|
|||||||
MYSQLUID=40
|
MYSQLUID=40
|
||||||
PASS=`dd if=/dev/urandom count=1 bs=12 2> /dev/null | encrypt -b 6`
|
PASS=`dd if=/dev/urandom count=1 bs=12 2> /dev/null | encrypt -b 6`
|
||||||
|
|
||||||
# Function: install the MySQL user account and group
|
# Function: install the mysql user account and group
|
||||||
# and create the MySQL database directory
|
# and create the MySQL database directory
|
||||||
#
|
#
|
||||||
do_pre_install()
|
do_pre_install()
|
||||||
@ -26,7 +26,7 @@ fi
|
|||||||
|
|
||||||
# Add user 'mysql' in /etc/passwd
|
# Add user 'mysql' in /etc/passwd
|
||||||
if [ "`egrep '^mysql:' /etc/passwd`" = "" ]; then
|
if [ "`egrep '^mysql:' /etc/passwd`" = "" ]; then
|
||||||
echo "===> Creating MySQL user, uid $MYSQLUID"
|
echo "===> Creating mysql user, uid $MYSQLUID"
|
||||||
adduser -batch mysql mysql "MySQL Account,,," ${PASS} > /dev/null 2>&1 /dev/null
|
adduser -batch mysql mysql "MySQL Account,,," ${PASS} > /dev/null 2>&1 /dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "===> Using account mysql for MySQL, uid $MYSQLUID, gid $MYSQLGID"
|
echo "===> Using account mysql for MySQL, uid $MYSQLUID, gid $MYSQLGID"
|
||||||
|
Loading…
Reference in New Issue
Block a user