CC-5583: Force database to be UTF8 regardless of terminal locale

This commit is contained in:
Albert Santoni 2013-11-28 15:37:05 -05:00
parent 6ea0cb5918
commit ffb31aa9f7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {