feat(legacy): consolidate constants (#1558)
* remove unused file * fix paths leading slash * remove useless imports * refactor(legacy): use constants everywhere * fix path leading slash * remove useless import * consolidate legacy contants * format code * reuse LIBRETIME_CONFIG_DIR * fix test config path * remove ci legacy log dir creation * some logs improvements
This commit is contained in:
parent
e106858fd8
commit
729a7b99e0
34 changed files with 133 additions and 257 deletions
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
class DatabaseSetup extends Setup
|
||||
{
|
||||
// airtime.conf section header
|
||||
// config file section header
|
||||
protected static $_section = '[database]';
|
||||
|
||||
// Constant form field names for passing errors back to the front-end
|
||||
|
@ -17,7 +17,7 @@ class DatabaseSetup extends Setup
|
|||
public const DB_NAME = 'dbName';
|
||||
public const DB_HOST = 'dbHost';
|
||||
|
||||
// Array of key->value pairs for airtime.conf
|
||||
// Array of key->value pairs for the config file
|
||||
protected static $_properties;
|
||||
|
||||
/**
|
||||
|
@ -294,6 +294,6 @@ class DatabaseSetup extends Setup
|
|||
*/
|
||||
private function updateDjangoTables()
|
||||
{
|
||||
shell_exec('LIBRETIME_CONFIG_FILEPATH=/etc/airtime/airtime.conf.temp libretime-api migrate');
|
||||
shell_exec('LIBRETIME_CONFIG_FILEPATH=' . INSTALLER_CONFIG_FILEPATH . ' libretime-api migrate');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue