try {
// Get a file pointer
- $io = FrameworkFileInputPointer::createFrameworkFileInputPointer('/etc/hostname');
+ $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfigEntry('hostname_file'));
// Read the file
$hostname = trim($io->readFromFile());