CC-3557: Airtime database install should specify UTF8 as the database encoding
This commit is contained in:
parent
5b65b56b93
commit
f6d52d271e
|
@ -209,7 +209,7 @@ class AirtimeInstall
|
||||||
$database = $CC_CONFIG['dsn']['database'];
|
$database = $CC_CONFIG['dsn']['database'];
|
||||||
$username = $CC_CONFIG['dsn']['username'];
|
$username = $CC_CONFIG['dsn']['username'];
|
||||||
#$command = "echo \"CREATE DATABASE $database OWNER $username\" | su postgres -c psql 2>/dev/null";
|
#$command = "echo \"CREATE DATABASE $database OWNER $username\" | su postgres -c psql 2>/dev/null";
|
||||||
$command = "su postgres -c \"createdb $database --owner $username\"";
|
$command = "su postgres -c \"createdb $database --encoding UTF8 --owner $username\"";
|
||||||
|
|
||||||
@exec($command, $output, $results);
|
@exec($command, $output, $results);
|
||||||
if ($results == 0) {
|
if ($results == 0) {
|
||||||
|
|
Loading…
Reference in New Issue