137: Fix missing sh in PATH r=roberth a=winston0410

Fixes #136 

Co-authored-by: kghugo <hugosum.dev@protonmail.com>
This commit is contained in:
bors[bot] 2021-10-17 21:43:44 +00:00 committed by GitHub
commit ee331fa1cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,20 @@
{ pkgs, ... }:
{
let
sh = pkgs.stdenv.mkDerivation {
name = "sh";
phases = [ "installPhase" ];
installPhase = ''
mkdir -p "$out"/bin
ln -s ${pkgs.bash}/bin/sh "$out"/bin/sh
'';
};
in{
config.project.name = "webapp";
config.services = {
webserver = {
image.contents = [ sh ];
service.useHostStore = true;
service.command = [ "sh" "-c" ''
cd "$$WEB_ROOT"