CC-2209: Put database install stuff into a separate script

-removed sudo
This commit is contained in:
martin 2011-05-16 20:59:44 -04:00
parent 84bf12627c
commit df3b24d3ad
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ AirtimeInstall::UninstallPhpCode();
echo " * Dropping the database '".$CC_CONFIG['dsn']['database']."'...".PHP_EOL;
// check if DB exists
$command = "echo \"DROP DATABASE IF EXISTS ".$CC_CONFIG['dsn']['database']."\" | sudo -u postgres psql";
$command = "echo \"DROP DATABASE IF EXISTS ".$CC_CONFIG['dsn']['database']."\" | su postgres -c psql";
@exec($command, $output, $dbDeleteFailed);