From 981ba4fe33f427c26b0fd05ca6474b925aa012e0 Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 25 Apr 2022 16:13:49 +0200 Subject: [PATCH] fix(legacy): the ini config parser requires a .conf ext - rename installer config filepath --- legacy/application/configs/constants.php | 2 +- legacy/public/setup/media-setup.php | 2 +- legacy/public/setup/setup-functions.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/application/configs/constants.php b/legacy/application/configs/constants.php index 8cf7ca841..4679c530a 100644 --- a/legacy/application/configs/constants.php +++ b/legacy/application/configs/constants.php @@ -25,7 +25,7 @@ define('LIBRETIME_CONF_DIR', LIBRETIME_CONFIG_DIR); // Deprecated define('LIBRETIME_CONFIG_FILEPATH', getenv('LIBRETIME_CONFIG_FILEPATH') ?: LIBRETIME_CONFIG_DIR . '/airtime.conf'); // Installer -define('INSTALLER_CONFIG_FILEPATH', LIBRETIME_CONFIG_DIR . '/airtime.conf.temp'); +define('INSTALLER_CONFIG_FILEPATH', LIBRETIME_CONFIG_DIR . '/airtime.temp.conf'); define('INSTALLER_DEFAULT_STORAGE_PATH', '/srv/airtime/stor'); // Legacy constants diff --git a/legacy/public/setup/media-setup.php b/legacy/public/setup/media-setup.php index 57a9d62a6..ed6119204 100644 --- a/legacy/public/setup/media-setup.php +++ b/legacy/public/setup/media-setup.php @@ -76,7 +76,7 @@ class MediaSetup extends Setup } /** - * Moves /tmp/airtime.conf.temp to /etc/airtime.conf and then removes it to complete setup. + * Moves /tmp/airtime.temp.conf to /etc/airtime.conf and then removes it to complete setup. * * @return bool false if either of the copy or removal operations fail */ diff --git a/legacy/public/setup/setup-functions.php b/legacy/public/setup/setup-functions.php index 34a9290ad..0e6663fef 100644 --- a/legacy/public/setup/setup-functions.php +++ b/legacy/public/setup/setup-functions.php @@ -25,7 +25,7 @@ abstract class Setup abstract public function runSetup(); /** - * Write new property values to a given section in airtime.conf.temp. + * Write new property values to a given section in airtime.temp.conf. */ protected function writeToTemp() {