Skip to content

Commit

Permalink
Copy file permissions when copying files
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbot95 committed Feb 22, 2024
1 parent d40cd53 commit 17e0ba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ in {
gsub("@"varname"@", ENVIRON[varname])
print
}' "${v}" > "${n}"
chmod --reference="${v}" "${n}"
'')
files));

Expand Down
2 changes: 1 addition & 1 deletion modules/palworld/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ in {
"Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" = settingsFile;
};

executable = "chmod +x ${conf.datadir}/PalServer.sh; ${pkgs.steam-run}/bin/steam-run ${conf.datadir}/PalServer.sh";
executable = "${pkgs.steam-run}/bin/steam-run ${conf.datadir}/PalServer.sh";

args =
[
Expand Down

0 comments on commit 17e0ba1

Please sign in to comment.