Draggon / hassio-hdd-tools

27 stars 14 forks source link

Preserve permissions when copying scripts #30

Closed McGiverGim closed 2 years ago

McGiverGim commented 3 years ago

Fixes https://github.com/Draggon/hassio-hdd-tools/issues/27

This preserves the permissions of the files copied to eliminate possible issues like the one of the issue linked.

I'm not too sure if this is the "correct" fix. I'm not too sure why we are copying the scripts to a shared external folder, and not executing directly the /opt files directly. Maybe to let an easy change/test of the scripts while developing?