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:
parent
604ff20239
commit
aed6d2f294
29 changed files with 51 additions and 45 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue