Rewrites to use config entry 'hostname_file' to allow e.g. Gentoo's way /etc/conf...
[core.git] / inc / classes / main / console / class_ConsoleTools.php
index 960aaa4..0dd5b93 100644 (file)
@@ -161,7 +161,7 @@ class ConsoleTools extends BaseFrameworkSystem {
 
                try {
                        // Get a file pointer
-                       $io = FrameworkFileInputPointer::createFrameworkFileInputPointer('/etc/hostname');
+                       $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfigEntry('hostname_file'));
 
                        // Read the file
                        $hostname = trim($io->readFromFile());