nixos/tor: admit newlines in secret key
This commit is contained in:
parent
c8b5c95264
commit
236a731da0
1 changed files with 1 additions and 1 deletions
|
@ -962,7 +962,7 @@ in
|
||||||
'') onion.authorizedClients ++
|
'') onion.authorizedClients ++
|
||||||
optional (onion.secretKey != null) ''
|
optional (onion.secretKey != null) ''
|
||||||
install -d -o tor -g tor -m 0700 ${escapeShellArg onion.path}
|
install -d -o tor -g tor -m 0700 ${escapeShellArg onion.path}
|
||||||
key="$(cut -f1 -d: ${escapeShellArg onion.secretKey})"
|
key="$(cut -f1 -d: ${escapeShellArg onion.secretKey} | head -1)"
|
||||||
case "$key" in
|
case "$key" in
|
||||||
("== ed25519v"*"-secret")
|
("== ed25519v"*"-secret")
|
||||||
install -o tor -g tor -m 0400 ${escapeShellArg onion.secretKey} ${escapeShellArg onion.path}/hs_ed25519_secret_key;;
|
install -o tor -g tor -m 0400 ${escapeShellArg onion.secretKey} ${escapeShellArg onion.path}/hs_ed25519_secret_key;;
|
||||||
|
|
Loading…
Reference in a new issue