diff options
author | Domen Kožar <domen@dev.si> | 2020-04-24 17:07:29 +0200 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-06-14 12:28:01 -0400 |
commit | c73daea61eba8679a3281ac8e1af1e8eeefe9452 (patch) | |
tree | 53de472b2140de42ec4973e41a45e802c8cb62e9 /scripts | |
parent | 041486b11674e0480ad85f63d262c33a09276ef1 (diff) |
darwin installer: remove the file before installing new one
Otherwise results into:
cp: /Library/LaunchDaemons/org.nixos.nix-daemon.plist and /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist are identical (not copied).
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/install-darwin-multi-user.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh index 5111a5dde..0326d3415 100644 --- a/scripts/install-darwin-multi-user.sh +++ b/scripts/install-darwin-multi-user.sh @@ -100,7 +100,7 @@ poly_extra_try_me_commands() { poly_configure_nix_daemon_service() { task "Setting up the nix-daemon LaunchDaemon" _sudo "to set up the nix-daemon as a LaunchDaemon" \ - /bin/cp -f "/nix/var/nix/profiles/default$NIX_DAEMON_DEST" "$NIX_DAEMON_DEST" + /usr/bin/install -m -rw-r--r-- "/nix/var/nix/profiles/default$NIX_DAEMON_DEST" "$NIX_DAEMON_DEST" _sudo "to load the LaunchDaemon plist for nix-daemon" \ launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist |