diff --git a/install_minimal/include/AirtimeInstall.php b/install_minimal/include/AirtimeInstall.php index caf538409..bb4c27268 100644 --- a/install_minimal/include/AirtimeInstall.php +++ b/install_minimal/include/AirtimeInstall.php @@ -224,7 +224,7 @@ class AirtimeInstall return true; } - $command = "su postgres -c \"createdb $database --encoding UTF8 --owner $username\""; + $command = "sudo -i -u postgres psql postgres -c \"CREATE DATABASE ".$database." WITH ENCODING 'UTF8' TEMPLATE template0 OWNER ".$username."\""; @exec($command, $output, $results); if ($results == 0) {