fix: make sure directory exists before using ln

(cherry picked from commit 5f71ebb956)
This commit is contained in:
Pol Dellaiera 2024-10-27 23:39:26 +01:00 committed by Mergify
parent 9728a4ac94
commit 2a2d484986

View File

@ -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"