summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJoachim F <joachifm@users.noreply.github.com>2017-09-13 19:41:25 +0000
committerGitHub <noreply@github.com>2017-09-13 19:41:25 +0000
commitc9200f8d9cd8d906eec8243beffa2b3cd97dc66e (patch)
tree5911cf42b7ab3d25bad1390662c6ca6b2d24b593 /nixos
parent161b8a2bc8352b2958cfdac834e2afe21acaf733 (diff)
parent8585898909e9a68c97483316d7c50a2d8135d8e1 (diff)
downloadnixlib-c9200f8d9cd8d906eec8243beffa2b3cd97dc66e.tar
nixlib-c9200f8d9cd8d906eec8243beffa2b3cd97dc66e.tar.gz
nixlib-c9200f8d9cd8d906eec8243beffa2b3cd97dc66e.tar.bz2
nixlib-c9200f8d9cd8d906eec8243beffa2b3cd97dc66e.tar.lz
nixlib-c9200f8d9cd8d906eec8243beffa2b3cd97dc66e.tar.xz
nixlib-c9200f8d9cd8d906eec8243beffa2b3cd97dc66e.tar.zst
nixlib-c9200f8d9cd8d906eec8243beffa2b3cd97dc66e.zip
Merge pull request #28874 from ryantm/mattermost
nixos/mattermost: fix create role
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/mattermost.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/mattermost.nix b/nixos/modules/services/web-apps/mattermost.nix
index be9af78da181..bc88a808abc9 100644
--- a/nixos/modules/services/web-apps/mattermost.nix
+++ b/nixos/modules/services/web-apps/mattermost.nix
@@ -185,7 +185,7 @@ in
         '' + lib.optionalString cfg.localDatabaseCreate ''
           if ! test -e "${cfg.statePath}/.db-created"; then
             ${config.services.postgresql.package}/bin/psql postgres -c \
-              "CREATE ROLE ${cfg.localDatabaseUser} WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.localDatabasePassword}'"
+              "CREATE ROLE ${cfg.localDatabaseUser} WITH LOGIN NOCREATEDB NOCREATEROLE ENCRYPTED PASSWORD '${cfg.localDatabasePassword}'"
             ${config.services.postgresql.package}/bin/createdb \
               --owner ${cfg.localDatabaseUser} ${cfg.localDatabaseName}
             touch ${cfg.statePath}/.db-created