mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +08:00
[Backport release-25.05] mattermost: charset fixes (#439044)
This commit is contained in:
@@ -668,7 +668,7 @@ in
|
||||
}
|
||||
else if cfg.database.driver == "mysql" then
|
||||
{
|
||||
charset = "utf8mb4,utf8";
|
||||
charset = "utf8mb4";
|
||||
writeTimeout = "60s";
|
||||
readTimeout = "60s";
|
||||
}
|
||||
@@ -682,7 +682,7 @@ in
|
||||
}
|
||||
else if config.mattermost.database.driver == "mysql" then
|
||||
{
|
||||
charset = "utf8mb4,utf8";
|
||||
charset = "utf8mb4";
|
||||
writeTimeout = "60s";
|
||||
readTimeout = "60s";
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ mattermost.overrideAttrs (
|
||||
|
||||
# Start Postgres.
|
||||
export PGDATA="$NIX_BUILD_TOP/.postgres"
|
||||
initdb -U postgres
|
||||
initdb -E UTF8 -U postgres
|
||||
mkdir -p "$PGDATA/run"
|
||||
cat <<EOF >> "$PGDATA/postgresql.conf"
|
||||
unix_socket_directories = '$PGDATA/run'
|
||||
|
||||
Reference in New Issue
Block a user