diff --git a/install/include/AirtimeInstall.php b/install/include/AirtimeInstall.php index ef9b86af5..78ed8b7fb 100644 --- a/install/include/AirtimeInstall.php +++ b/install/include/AirtimeInstall.php @@ -8,7 +8,7 @@ class AirtimeInstall const CONF_DIR_BINARIES = "/usr/lib/airtime"; const CONF_DIR_STORAGE = "/srv/airtime"; const CONF_DIR_WWW = "/var/www/airtime"; - + public static function GetAirtimeSrcDir() { return __DIR__."/../../airtime_mvc"; @@ -150,6 +150,7 @@ class AirtimeInstall $database = $CC_CONFIG['dsn']['database']; $username = $CC_CONFIG['dsn']['username']; $command = "echo \"CREATE DATABASE $database OWNER $username\" | su postgres -c psql"; + @exec($command, $output, $results); if ($results == 0) { echo "* Database '{$CC_CONFIG['dsn']['database']}' created.".PHP_EOL;