diff --git a/src/DhcpBundle/Service/CurlKeaService.php b/src/DhcpBundle/Service/CurlKeaService.php index c321c90..6ecfa76 100644 --- a/src/DhcpBundle/Service/CurlKeaService.php +++ b/src/DhcpBundle/Service/CurlKeaService.php @@ -81,7 +81,7 @@ class CurlKeaService $config_text = json_encode($get_output[0]['arguments']); $configurationParsed = str_replace('\\', '', $config_text); - $backup_dir = '/opt/ogdhcp/etc/kea/backup'; + $backup_dir = __DIR__ . '/../../../etc/kea/backup'; if (!is_dir($backup_dir)) { throw new Exception('El directorio de backup no existe'); }