From e9535b360785ea93f8ac34f1681e27780d8b6a91 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 15 Dec 2012 11:31:25 +0100 Subject: [PATCH] check return of DB creation command --- utils/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/setup.php b/utils/setup.php index 3fe5a7ab..ed4b79c0 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -95,7 +95,7 @@ { fail('database already exists ('.CONST_Database_DSN.')'); } - passthru('createdb -E UTF-8 '.$aDSNInfo['database']); + passthruCheckReturn('createdb -E UTF-8 '.$aDSNInfo['database']); } if ($aCMDResult['setup-db'] || $aCMDResult['all']) -- 2.45.2