mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 01:24:09 +02:00
clenaup bootstrap a bit
This commit is contained in:
parent
07c0f477e1
commit
666b58a773
5 changed files with 97 additions and 109 deletions
|
|
@ -39,10 +39,6 @@
|
|||
phpVersion = concatStringsSep "." (take 2 (splitString "." php.version));
|
||||
phpEnv = callPackage ./php.nix {inherit debug php;};
|
||||
|
||||
bootstrap-nginx = writeShellApplication {
|
||||
name = "bootstrap-nginx";
|
||||
text = readFile ./bootstrap-nginx.sh;
|
||||
};
|
||||
bootstrap = writeShellApplication {
|
||||
name = "bootstrap";
|
||||
runtimeInputs = [getent];
|
||||
|
|
@ -169,7 +165,6 @@ in
|
|||
fromImage = phpImage;
|
||||
contents = [
|
||||
tmpDir
|
||||
bootstrap-nginx
|
||||
bootstrap
|
||||
configs
|
||||
scripts
|
||||
|
|
@ -187,7 +182,7 @@ in
|
|||
chmod -R 0755 etc/nc
|
||||
'';
|
||||
config = {
|
||||
Cmd = [(getExe bootstrap) ./nginx.conf ./php-fpm.conf];
|
||||
Cmd = getExe bootstrap;
|
||||
Env = ["EDITOR=hx" "WEBROOT=/var/www/html"];
|
||||
WorkingDir = "/var/www/html";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue