From 3efac200a02d30cb41f65cf94a32ab65152e5dd3 Mon Sep 17 00:00:00 2001 From: lgromero Date: Thu, 15 Feb 2024 09:26:50 +0100 Subject: [PATCH] #153 adds relatives routes in backup files --- src/DhcpBundle/Service/CurlKeaService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }