TurboTurtle / rig

A lightweight, flexible, easy to use system monitoring and event handling utility
GNU General Public License v2.0
10 stars 7 forks source link

[rig] empty temporary directory was not deleted after rig destroy #26

Closed mmatsuya closed 4 years ago

mmatsuya commented 4 years ago

The temporary directory was not deleted after rig destroy. It should be deleted by the destroy subcommand. Otherwise, the unused empty directories will be created in it for each rig destroy command, and it's required to delete it manually.

# rig destroy -i jeygb
jeygb destroyed
# ls /var/tmp/rig
jeygb
# ls jeygb
# 
TurboTurtle commented 4 years ago

Ack. The check for removing the temp directory was too strict, in an effort to avoid accidental data deletion in case we failed to compress rig data for some reason.

Trivial fix, will be merged into master later today.