forge-server: Fix potential duplicate definition of config
This commit is contained in:
parent
70e5b6206e
commit
71d783ec11
2 changed files with 4 additions and 4 deletions
pkgs/minecraft
|
@ -1,5 +1,5 @@
|
|||
{ lib, stdenv, fetchurl, busybox, coreutils, jre_headless, runtimeShell
|
||||
, mods ? null, config ? null, defaultconfigs ? null }:
|
||||
, mods ? null, modConfig ? null, defaultconfigs ? null }:
|
||||
|
||||
let
|
||||
name = "forge-server";
|
||||
|
@ -59,11 +59,11 @@ in stdenv.mkDerivation rec {
|
|||
# Delete any previous config directories so that they can be updated
|
||||
${busybox}/bin/rm -fr config defaultconfigs
|
||||
|
||||
${lib.optionalString (config != null) ''
|
||||
${lib.optionalString (modConfig != null) ''
|
||||
# Copy the specified configs into the directory. Forge (and
|
||||
# mods) will try to write here, so we cannot symlink.
|
||||
${busybox}/bin/mkdir -p config
|
||||
${busybox}/bin/cp -r '${config}'/* config
|
||||
${busybox}/bin/cp -r '${modConfig}'/* config
|
||||
${busybox}/bin/chmod -R u+w config
|
||||
''}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue