Skip to content

Commit 165dc67

Browse files
Ma27grahamc
authored andcommittedNov 13, 2017
services.postgres: fix quoting in the description of superUser
`nixos-option` evals the description and the '`' is used to define shell commands. Due to this, the following error appears: ``` $ nixos-option services.postgresql.superUser Value: "root" Default: "root" Description: /run/current-system/sw/bin/nixos-option: line 294: root: command not found /run/current-system/sw/bin/nixos-option: line 294: postgres: command not found NixOS traditionally used as superuser, most other distros use . From 17.09 we also try to follow this standard. Internal since changing this value would lead to breakage while setting up databases. ``` (cherry picked from commit 82062f7)
1 parent b76e7f8 commit 165dc67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/services/databases/postgresql.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ in
153153
default= if versionAtLeast config.system.stateVersion "17.09" then "postgres" else "root";
154154
internal = true;
155155
description = ''
156-
NixOS traditionally used `root` as superuser, most other distros use `postgres`.
156+
NixOS traditionally used 'root' as superuser, most other distros use 'postgres'.
157157
From 17.09 we also try to follow this standard. Internal since changing this value
158158
would lead to breakage while setting up databases.
159159
'';

0 commit comments

Comments
 (0)
Please sign in to comment.