Skip to content

Commit

Permalink
feat: destroy command added
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Sep 5, 2024
1 parent 07b8179 commit c114934
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion volume_toolkit
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ elif [ "$1" == "size" ]; then
size=$(du -sb /data | awk '{print $1}')
printf "%s" "$size" > /app/size.txt
exit 0
elif [ "$1" == "destroy"]; then
sudo rm -rf /data
printf "Deleted all contents of persistent volume"
exit 0
else
echo "Usage: [export|import|size]"
echo "Usage: [export|import|size|destroy]"
exit 1
fi

0 comments on commit c114934

Please sign in to comment.