mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
Merge pull request #11776 from NixOS/push-porpmpmkzuus
fix: make sure directory exists before using `ln`
This commit is contained in:
commit
2e5759e377
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ poly_configure_nix_daemon_service() {
|
||||||
if [ -e /run/systemd/system ]; then
|
if [ -e /run/systemd/system ]; then
|
||||||
task "Setting up the nix-daemon systemd service"
|
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" \
|
_sudo "to create the nix-daemon tmpfiles config" \
|
||||||
ln -sfn "/nix/var/nix/profiles/default$TMPFILES_SRC" "$TMPFILES_DEST"
|
ln -sfn "/nix/var/nix/profiles/default$TMPFILES_SRC" "$TMPFILES_DEST"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue