CC-2209: Put database install stuff into a separate script
-removed sudo
This commit is contained in:
parent
84bf12627c
commit
df3b24d3ad
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue