Skip to content

Commit

Permalink
Merge pull request #911 from mcdonc/allow-container-startupcommand-to…
Browse files Browse the repository at this point in the history
…-work

Allow container startupCommand to work
  • Loading branch information
domenkozar authored Dec 31, 2023
2 parents d4da9da + 36c724b commit cde5988
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ let
source ${shell.envScript}
exec "$@"
# expand any envvars before exec
cmd="`echo "$@"|${pkgs.envsubst}/bin/envsubst`"
exec $cmd
'';
mkDerivation = cfg: nix2container.nix2container.buildImage {
name = cfg.name;
Expand Down

0 comments on commit cde5988

Please sign in to comment.