bonidier / synodlna-index

synchronize your Synology NAS DLNA shares with synoindex and inotifywait
3 stars 3 forks source link

Feature request: wait for encrypted folders #5

Open andlommy opened 9 years ago

andlommy commented 9 years ago

Some folders on my NAS are encrypted, so not available when synology launches

As far as i understand, the script only checks for shares at startup, but when shares are added later, it does not dynamically update itelf. Right now i've added a piece of code which is very dirty, but i'm no scripting pro

while [[ ! -d /volume1/EncryptedShare1 || ! -d /volume1/EncryptedShare2 || ! -d /volume1/EncryptedShare3 ]] do sleep 30s echo "date Waiting for watch folders to be mounted. sleeping" done

I wonder if something more elegant can be devised

bonidier commented 9 years ago

Hi @andlommy ,

Here is a great suggest !

When launched, the script is parsing a Synology file containing default (photo/video/music) and only custom shared folders you've added for DLNA indexing.

I think your feature request is possible and a nice improvement !

I'll work on it ASAP