summaryrefslogtreecommitdiffstats
path: root/utils/mysql/patches/100-fix_hostname.patch
blob: faedc2716afafcd598be758d997036d4e5a783bc (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
@@ -322,7 +322,7 @@ then
 fi
 
 # Try to determine the hostname
-hostname=`@HOSTNAME@`
+hostname=`cat /proc/sys/kernel/hostname`
 
 # Check if hostname is valid
 if test "$cross_bootstrap" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0