CC-3994: Install script hard-codes storage path, instead of using value
in airtime-install.ini - done
This commit is contained in:
parent
9ac024fa72
commit
832e210609
|
@ -15,8 +15,11 @@ class Version20110711161043 extends AbstractMigration
|
||||||
{
|
{
|
||||||
public function up(Schema $schema)
|
public function up(Schema $schema)
|
||||||
{
|
{
|
||||||
|
$ini = parse_ini_file(__DIR__."../include/airtime-install.ini");
|
||||||
|
$stor_dir = $ini["storage_dir"];
|
||||||
|
|
||||||
/* 1) update cc_files table to include to "directory" column */
|
/* 1) update cc_files table to include to "directory" column */
|
||||||
$this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor/');");
|
$this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', $stor_dir);");
|
||||||
|
|
||||||
$this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('link', '');");
|
$this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('link', '');");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue