lix/scripts
Greg Price 26851dd2c2 installer: Set files read-only when copying into store
After installing Nix, I found that all the files and directories
initially copied into the store were writable, with mode 644 or 755:

  drwxr-xr-x 9 root root 4096 Dec 31  1969 /nix/store/ddmmzn4ggz1f66lwxjy64n89864yj9w9-nix-2.3.3

The reason is that that's how they were in the unpacked tarball, and
the install-multi-user script used `rsync -p` without doing anything
else to affect the permissions.

The plain `install` script for a single-user install takes care to
do a `chmod -R a-w` on each store path copied.  We could do the same
here with one more command; or we can pass `--chmod` to rsync, to
have it write the files with the desired modes in the first place.

Tested the new `rsync` command on both a Linux machine with a
reasonably-modern rsync (3.1.3) and a Mac with its default, ancient,
rsync 2.6.9, and it works as expected on both.  Thankfully the latter
is just new enough to have `--chmod`, which dates to rsync 2.6.7.
2020-03-22 23:07:20 -07:00
..
install-darwin-multi-user.sh Copy instead of linking launch agent 2019-10-08 21:52:17 -04:00
install-multi-user.sh installer: Set files read-only when copying into store 2020-03-22 23:07:20 -07:00
install-nix-from-closure.sh README, error msg: http -> https 2020-03-11 19:41:22 +01:00
install-systemd-multi-user.sh installer: Handle edge case where the nix-daemon is already running on the system 2020-01-23 14:48:53 +01:00
install.in installer: also test for xz to unpack 2020-03-21 09:31:39 +01:00
local.mk Pull nix-profile-daemon from 1.11 2017-10-16 14:51:39 -04:00
nix-http-export.cgi.in Replace wrong (w.r.t. PATH) sed call with in-shell substitution 2009-02-19 20:46:45 +00:00
nix-profile-daemon.sh.in Provide a default value for NIX_PATH 2019-11-22 22:08:51 +01:00
nix-profile.sh.in Provide a default value for NIX_PATH 2019-11-22 22:08:51 +01:00
nix-reduce-build.in Add support for ‘make installcheck’ 2013-11-25 18:47:03 +01:00