packages/utils/mysql/patches/100-fix_hostname.patch
Jo-Philipp Wich 0a4217b2fe mysql: import from oldpackages, add myself as maintainer
No updates to the package as it is the latest release of the still
supported 5.1 release series.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-08-11 16:05:06 +02:00

11 lines
300 B
Diff

--- 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