Skip to content

Commit

Permalink
fix: make sure directory exists before using ln
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Oct 28, 2024
1 parent 059bdb5 commit 57f6729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-systemd-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ poly_configure_nix_daemon_service() {
task "Setting up the nix-daemon systemd service"

_sudo "to create the nix-daemon tmpfiles config" \
ln -sfn "/nix/var/nix/profiles/default$TMPFILES_SRC" "$TMPFILES_DEST"
mkdir -p "$(dirname "$TMPFILES_DEST")" && ln -sfn "/nix/var/nix/profiles/default$TMPFILES_SRC" "$TMPFILES_DEST"

_sudo "to run systemd-tmpfiles once to pick that path up" \
systemd-tmpfiles --create --prefix=/nix/var/nix
Expand Down

0 comments on commit 57f6729

Please sign in to comment.