nix: use escapeShellArg for vars in wrapper scripts
This commit is contained in:
parent
596f9aa8bb
commit
7d7127da1e
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ let
|
|||
|
||||
loadEnv = (pkgs.writeScript "load-bookwyrm-env" ''
|
||||
#!/usr/bin/env bash
|
||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: "export ${n}='${v}'") env)}
|
||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: ''export ${n}="$(cat '${v}')"'') envSecrets)}
|
||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: "export ${n}=${lib.escapeShellArg v}") env)}
|
||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: ''export ${n}="$(cat ${lib.escapeShellArg v})"'') envSecrets)}
|
||||
'');
|
||||
bookwyrmManageScript = (pkgs.writeScriptBin "bookwyrm-manage" ''
|
||||
#!/usr/bin/env bash
|
||||
|
|
Loading…
Add table
Reference in a new issue