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

View File

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