From df3b24d3add2b3bc0d0c22a25cea32279a4971da Mon Sep 17 00:00:00 2001
From: martin <martin@martin-ThinkPad-T410.(none)>
Date: Mon, 16 May 2011 20:59:44 -0400
Subject: [PATCH] CC-2209: Put database install stuff into a separate script

-removed sudo
---
 install/airtime-uninstall.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install/airtime-uninstall.php b/install/airtime-uninstall.php
index 065ff6f68..e1acdaf74 100644
--- a/install/airtime-uninstall.php
+++ b/install/airtime-uninstall.php
@@ -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);