This commit is contained in:
stubbfelnewpc
2022-08-30 18:21:55 +00:00
parent fffc86f412
commit f9652b6d3b
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -43,3 +43,6 @@
*.code-workspace *.code-workspace
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,git # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,git
result/
tmp/

View File

@@ -1,5 +1,5 @@
# nix-build unciv.rix # nix-build unciv.rix
{ pkgs ? import <nixpkgs> { }, stateDir ? "/var/lib/unciv" }: { pkgs ? import <nixpkgs> { }, stateDir ? "/var/lib/unciv", port ? "80", }:
let let
@@ -21,7 +21,7 @@ in
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
script = '' script = ''
mkdir -p "${stateDir}" mkdir -p "${stateDir}"
${uncivServerCmd}/bin/UncivServer.sh -f "${stateDir}" ${uncivServerCmd}/bin/UncivServer.sh -f "${stateDir}" -p "${port}"
''; '';
}; };