From 1182d659712ae7debcac85335b5560b7905c3ded Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Sat, 12 Jun 2021 09:56:59 +0200 Subject: [PATCH] Correct file names cnf_read and cnf_wr can only write to a filename (not a path) inside /etc/asterisk --- install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index 4bbc094..c10f16b 100644 --- a/install.php +++ b/install.php @@ -798,14 +798,14 @@ function Setup_RealTime() foreach ($backup_ext as $value) { if (file_exists($dir . '/extconfig' . $value)) { // Last possibility is normal file extconfig.conf - $ext_conf_file = $dir . 'extconfig' . $value; + $ext_conf_file = 'extconfig' . $value; $ext_conf = $cnf_read->getConfig($ext_conf_file); break; } } if (empty($ext_conf_file)) { // Have not found a file, so will need to create. $ext_conf must be empty - $ext_conf_file = $dir . '/extconfig.conf'; + $ext_conf_file = 'extconfig.conf'; } if (!empty($ext_conf)) {