-removed airtime-clean-storage.php + airtime-import.php
-default created stor dir now has www-data:www-data permission -created airtime-install.ini file for specifying install defaults -removed all references to storDir in /etc/airtime/airtime.conf, and get value from database instead.
This commit is contained in:
parent
2659932cfb
commit
2c4e2afb8b
16 changed files with 23 additions and 628 deletions
|
@ -50,8 +50,11 @@ AirtimeInstall::SetAirtimeVersion(AIRTIME_VERSION);
|
|||
AirtimeInstall::SetUniqueId();
|
||||
|
||||
if (AirtimeInstall::$databaseTablesCreated) {
|
||||
echo "* Inserting stor directory into music_dirs table".PHP_EOL;
|
||||
$stor_dir = realpath($CC_CONFIG['storageDir']);
|
||||
|
||||
$ini = parse_ini_file(__DIR__."/airtime-install.ini");
|
||||
|
||||
$stor_dir = $ini["storage_dir"];
|
||||
echo "* Inserting stor directory location $stor_dir into music_dirs table".PHP_EOL;
|
||||
|
||||
$sql = "INSERT INTO cc_music_dirs (directory, type) VALUES ('$stor_dir', 'stor')";
|
||||
$result = $CC_DBC->query($sql);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue