Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

prune.sh appears to remove all images/thumbs #134

Open
mbruski opened this issue Feb 14, 2021 · 2 comments
Open

prune.sh appears to remove all images/thumbs #134

mbruski opened this issue Feb 14, 2021 · 2 comments
Assignees

Comments

@mbruski
Copy link

mbruski commented Feb 14, 2021

Running prune.sh appears to delete all images/thumbnails, not just the oldest 10.

Reviewing the script, I can see where img_path gets set but not IMG_NAME. If IMG_NAME is not set, bash will treat it as a NULL string. Thus in the "find" statements ${IMG_NAME}*.jpg is treated as *.jpg and all images get selected and deleted.

@jekhokie
Copy link
Collaborator

Hey @mbruski - this is actually fixed in the v2 version of raspberry-noaa, in addition to adding some time-based pruning capability. You can check it out here: https://github.com/jekhokie/raspberry-noaa-v2

@maxzega
Copy link

maxzega commented Feb 14, 2021

hi Jekhokie, can you post the example sqlite3 script line to delete a specific image from the database? Thanks so much

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants