mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Change -IN_RPM -> --rpm and -WINDOWS -> --windows from mysql_install_db
This commit is contained in:
@ -7,15 +7,15 @@
|
||||
#
|
||||
# All unrecognized arguments to this script are passed to mysqld.
|
||||
|
||||
IN_RPM=0
|
||||
in_rpm=0
|
||||
case "$1" in
|
||||
-IN-RPM)
|
||||
IN_RPM="1"; shift
|
||||
--rpm)
|
||||
in_rpm="1"; shift
|
||||
;;
|
||||
esac
|
||||
windows=0
|
||||
case "$1" in
|
||||
-WINDOWS)
|
||||
--windows)
|
||||
windows="1"; shift
|
||||
;;
|
||||
esac
|
||||
@ -102,7 +102,7 @@ mdata=$ldata/mysql
|
||||
|
||||
if test "$windows" -eq 0 -a ! -x $execdir/mysqld
|
||||
then
|
||||
if test "$IN_RPM" -eq 1
|
||||
if test "$in_rpm" -eq 1
|
||||
then
|
||||
echo "FATAL ERROR $execdir/mysqld not found!"
|
||||
exit 1
|
||||
@ -116,7 +116,7 @@ fi
|
||||
hostname=`@HOSTNAME@` # Install this too in the user table
|
||||
|
||||
# Check if hostname is valid
|
||||
if test "$windows" -eq 0 -a "$IN_RPM" -eq 0 -a $force -eq 0
|
||||
if test "$windows" -eq 0 -a "$in_rpm" -eq 0 -a $force -eq 0
|
||||
then
|
||||
resolved=`$bindir/resolveip $hostname 2>&1`
|
||||
if [ $? -ne 0 ]
|
||||
@ -140,7 +140,7 @@ then
|
||||
fi
|
||||
|
||||
# Create database directories mysql & test
|
||||
if test "$IN_RPM" -eq 0 || "$windows" -eq 0
|
||||
if test "$in_rpm" -eq 0 || "$windows" -eq 0
|
||||
then
|
||||
if test ! -d $ldata; then mkdir $ldata; chmod 700 $ldata ; fi
|
||||
if test ! -d $ldata/mysql; then mkdir $ldata/mysql; chmod 700 $ldata/mysql ; fi
|
||||
@ -342,7 +342,7 @@ END_OF_DATA
|
||||
--basedir=$basedir --datadir=$ldata --skip-innodb --skip-bdb $args"
|
||||
then
|
||||
echo ""
|
||||
if test "$IN_RPM" -eq 0 || "$windows" -eq 0
|
||||
if test "$in_rpm" -eq 0 || "$windows" -eq 0
|
||||
then
|
||||
echo "To start mysqld at boot time you have to copy support-files/mysql.server"
|
||||
echo "to the right place for your system"
|
||||
@ -363,7 +363,7 @@ then
|
||||
echo "able to use the new GRANT command!"
|
||||
fi
|
||||
echo
|
||||
if test "$IN_RPM" -eq 0 -a "$windows" -eq 0
|
||||
if test "$in_rpm" -eq 0 -a "$windows" -eq 0
|
||||
then
|
||||
echo "You can start the MySQL daemon with:"
|
||||
echo "cd @prefix@ ; $bindir/mysqld_safe &"
|
||||
|
Reference in New Issue
Block a user