bonidier/synodlna-index

Feature request: wait for encrypted folders

Opened this issue · 1 comments

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

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