]> git.openstreetmap.org Git - nominatim.git/commitdiff
check return of DB creation command
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 15 Dec 2012 10:31:25 +0000 (11:31 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 15 Dec 2012 10:31:25 +0000 (11:31 +0100)
utils/setup.php

index 3fe5a7abec3594f4e455443a23f3e3e1d87c4358..ed4b79c0adbfe3647c1374e76183b48acfe487d4 100755 (executable)
@@ -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'])