Skip to content

Commit

Permalink
nixos-container: check for correct path for chattr
Browse files Browse the repository at this point in the history
Could fail on destroy if the container wasn't created correctly
  • Loading branch information
globin committed Mar 22, 2017
1 parent 3ac02df commit 91e74ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ sub safeRemoveTree {

safeRemoveTree($profileDir) if -e $profileDir;
safeRemoveTree($gcRootsDir) if -e $gcRootsDir;
system("chattr", "-i", "$root/var/empty") if -e $root;
system("chattr", "-i", "$root/var/empty") if -e "$root/var/empty";
safeRemoveTree($root) if -e $root;
unlink($confFile) or die;
}
Expand Down

0 comments on commit 91e74ed

Please sign in to comment.