Skip to content

Commit

Permalink
Merge pull request #11776 from NixOS/push-porpmpmkzuus
Browse files Browse the repository at this point in the history
fix: make sure directory exists before using `ln`
  • Loading branch information
Mic92 authored Nov 1, 2024
2 parents c91c1cd + 5f71ebb commit 2e5759e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/install-systemd-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ poly_configure_nix_daemon_service() {
if [ -e /run/systemd/system ]; then
task "Setting up the nix-daemon systemd service"

_sudo "to create parent of the nix-daemon tmpfiles config" \
mkdir -p "$(dirname "$TMPFILES_DEST")"

_sudo "to create the nix-daemon tmpfiles config" \
ln -sfn "/nix/var/nix/profiles/default$TMPFILES_SRC" "$TMPFILES_DEST"

Expand Down

0 comments on commit 2e5759e

Please sign in to comment.