Merge #137
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:
commit
ee331fa1cd
1 changed files with 12 additions and 1 deletions
|
@ -1,9 +1,20 @@
|
||||||
{ pkgs, ... }:
|
{ 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.project.name = "webapp";
|
||||||
config.services = {
|
config.services = {
|
||||||
|
|
||||||
webserver = {
|
webserver = {
|
||||||
|
image.contents = [ sh ];
|
||||||
service.useHostStore = true;
|
service.useHostStore = true;
|
||||||
service.command = [ "sh" "-c" ''
|
service.command = [ "sh" "-c" ''
|
||||||
cd "$$WEB_ROOT"
|
cd "$$WEB_ROOT"
|
||||||
|
|
Loading…
Reference in a new issue