[yast-devel] [PATCH yast-yast2] Use /etc/hostname instead of /etc/HOSTNAME
--- library/types/src/Hostname.ycp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/types/src/Hostname.ycp b/library/types/src/Hostname.ycp index a98aa30..65e091b 100644 --- a/library/types/src/Hostname.ycp +++ b/library/types/src/Hostname.ycp @@ -165,7 +165,7 @@ global define string CurrentFQ() { map hostname_data = (map) SCR::Execute(.target.bash_output, "hostname --fqdn"); if (hostname_data == nil || hostname_data["exit"]:-1 != 0 ) { - fqhostname = ($[] != (map) SCR::Read(.target.stat, "/etc/HOSTNAME") ? (string) SCR::Read(.target.string, "/etc/HOSTNAME"):""); + fqhostname = ($[] != (map) SCR::Read(.target.stat, "/etc/hostname") ? (string) SCR::Read(.target.string, "/etc/hostname"):""); if ( fqhostname == "" || fqhostname == nil ) { -- 1.8.2.3 -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (1)
-
Cristian Rodríguez