summaryrefslogtreecommitdiff
path: root/scripts/mysql_install_db.sh
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2003-08-26 14:29:13 +0200
committerunknown <lenz@mysql.com>2003-08-26 14:29:13 +0200
commit7a21caabab32c3cce0357fbccf772b2af482d470 (patch)
treeae678bec01929c11461ea24c822be4c15a379b46 /scripts/mysql_install_db.sh
parent2dacea35269cbc8a00d2d4ffa9db132b9e7ff8ed (diff)
downloadmariadb-git-7a21caabab32c3cce0357fbccf772b2af482d470.tar.gz
- Reverted a fix for bug#897, as it broke the installation on some
other operating systems - some implementations of "hostname" simply set the host name to "-f" instead of giving an error about an unkown option
Diffstat (limited to 'scripts/mysql_install_db.sh')
-rw-r--r--scripts/mysql_install_db.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh
index ffb857933cd..920bd27cc88 100644
--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
@@ -107,13 +107,8 @@ then
fi
fi
-# Try to determine the fully qualified domain name (FQDN)
-HOSTNAME="@HOSTNAME@"
-if $HOSTNAME -f > /dev/null 2>&1 ; then
- hostname=`$HOSTNAME -f`
-else
- hostname=`$HOSTNAME`
-fi
+# Try to determine the hostname
+hostname=`@HOSTNAME@`
# Check if hostname is valid
if test "$IN_RPM" -eq 0 -a $force -eq 0