Skip to content

Commit f5e0e94

Browse files
committedSep 13, 2017
nixos/redmine: fix create role
postgresql create role no longer supports NOCREATEUSER option. See https://www.postgresql.org/docs/9.6/static/release-9-6.html for details.
1 parent b0237f7 commit f5e0e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/services/misc/redmine.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ in {
191191
192192
if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then
193193
if ! test -e "${cfg.stateDir}/db-created"; then
194-
psql postgres -c "CREATE ROLE redmine WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'"
194+
psql postgres -c "CREATE ROLE redmine WITH LOGIN NOCREATEDB NOCREATEROLE ENCRYPTED PASSWORD '${cfg.databasePassword}'"
195195
${config.services.postgresql.package}/bin/createdb --owner redmine redmine || true
196196
touch "${cfg.stateDir}/db-created"
197197
fi

0 commit comments

Comments
 (0)