add port
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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/
|
||||||
@@ -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}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user