CC-5583: Force database to be UTF8 regardless of terminal locale
This commit is contained in:
parent
6ea0cb5918
commit
ffb31aa9f7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue