projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/inc/classes/main/console/class_ConsoleTools.php
b/inc/classes/main/console/class_ConsoleTools.php
index 960aaa42a926fcd412721eb60d6b32560f5a0046..0dd5b93c5778533a085b3ac47a1e7926dda67b1f 100644
(file)
--- a/
inc/classes/main/console/class_ConsoleTools.php
+++ b/
inc/classes/main/console/class_ConsoleTools.php
@@
-161,7
+161,7
@@
class ConsoleTools extends BaseFrameworkSystem {
try {
// Get a file pointer
try {
// Get a file pointer
- $io = FrameworkFileInputPointer::createFrameworkFileInputPointer(
'/etc/hostname'
);
+ $io = FrameworkFileInputPointer::createFrameworkFileInputPointer(
$helperInstance->getConfigEntry('hostname_file')
);
// Read the file
$hostname = trim($io->readFromFile());
// Read the file
$hostname = trim($io->readFromFile());