feat: change config dir path to /etc/libretime

BREAKING: The configuration directory changed from `/etc/airtime` to
`/etc/libretime`. Please rename your configuration directory accordingly.
This commit is contained in:
jo 2022-06-06 17:10:44 +02:00 committed by Kyle Robbertze
parent 604ff20239
commit aed6d2f294
29 changed files with 51 additions and 45 deletions

View file

@ -65,7 +65,7 @@ class MediaSetup extends Setup
rename($tmpFile, $bakFile);
}
} else {
self::$message = "Failed to move config.yml; /etc/airtime doesn't exist!";
self::$message = "Failed to move config.yml; /etc/libretime doesn't exist!";
self::$errors[] = 'ERR';
}
@ -76,7 +76,7 @@ class MediaSetup extends Setup
}
/**
* Moves /tmp/airtime.temp.conf to /etc/airtime/config.yml and then removes it to complete setup.
* Moves /tmp/airtime.temp.conf to /etc/libretime/config.yml and then removes it to complete setup.
*
* @return bool false if either of the copy or removal operations fail
*/

View file

@ -124,7 +124,7 @@ require_once 'general-setup.php';
require_once 'media-setup.php';
// If config.yml exists, we shouldn't be here
if (!file_exists('/etc/airtime/config.yml')) {
if (!file_exists('/etc/libretime/config.yml')) {
if (isset($_GET['obj']) && $objType = $_GET['obj']) {
$obj = new $objType($_POST);
if ($obj instanceof Setup) {