Merge branch '1.8.1' of dev.sourcefabric.org:airtime into 1.8.1
Conflicts: install/include/AirtimeInstall.php
This commit is contained in:
commit
b030ebaba7
|
@ -150,6 +150,7 @@ class AirtimeInstall
|
||||||
$database = $CC_CONFIG['dsn']['database'];
|
$database = $CC_CONFIG['dsn']['database'];
|
||||||
$username = $CC_CONFIG['dsn']['username'];
|
$username = $CC_CONFIG['dsn']['username'];
|
||||||
$command = "echo \"CREATE DATABASE $database OWNER $username\" | su postgres -c psql";
|
$command = "echo \"CREATE DATABASE $database OWNER $username\" | su postgres -c psql";
|
||||||
|
|
||||||
@exec($command, $output, $results);
|
@exec($command, $output, $results);
|
||||||
if ($results == 0) {
|
if ($results == 0) {
|
||||||
echo "* Database '{$CC_CONFIG['dsn']['database']}' created.".PHP_EOL;
|
echo "* Database '{$CC_CONFIG['dsn']['database']}' created.".PHP_EOL;
|
||||||
|
|
Loading…
Reference in New Issue