Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Fix instance directory removal
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>
  • Loading branch information
ScarletTanager authored and Anonymous Coward committed Mar 17, 2016
1 parent a3ac7b9 commit ffcdf89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion warden/root/linux/skeleton/destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ then
echo "About to remove cgroups"
# Remove nested cgroups for nested-warden
rmdir $path/instance* 2> /dev/null || true
rmdir $path
rmdir $path || true

if [ -d $path ]
then
echo "Failed to delete $path"
false
fi
fi
done

Expand Down

0 comments on commit ffcdf89

Please sign in to comment.