lib: rename privileged -> rootScript
The naming is now analogous the related function `script`.
This commit is contained in:
parent
1c3735b600
commit
c758d68ea4
@ -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}"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user