lib: rename privileged -> rootScript

The naming is now analogous the related function `script`.
This commit is contained in:
Erik Arvstedt 2021-08-15 11:28:34 +02:00
parent 1c3735b600
commit c758d68ea4
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ in {
done
'')
# Setting macaroon permission for other users needs root permissions
(nbLib.privileged "lnd-create-macaroons" ''
(nbLib.rootScript "lnd-create-macaroons" ''
umask ug=r,o=
${lib.concatMapStrings (macaroon: ''
echo "Create custom macaroon ${macaroon}"

View File

@ -70,7 +70,7 @@ let self = {
'';
# Used for ExecStart*
privileged = name: src: "+${self.script name src}";
rootScript = name: src: "+${self.script name src}";
cliExec = mkOption {
# Used by netns-isolation to execute the cli in the service's private netns