auanasgheps / snapraid-aio-script

The definitive all-in-one SnapRAID script on Linux. Diff, sync, scrub are things of the past. Manage SnapRAID and much, much more!
GNU General Public License v3.0
225 stars 36 forks source link

Add ability to specify a config file for snapraid to use #77

Closed ankorite closed 6 months ago

ankorite commented 6 months ago

I am looking to add a second snapraid pool and will need to call the snapraid executable using snapraid -c /path/to/config cmd would this be a feature you are interested in adding?

If I feel froggy I might make a PR for it, would you rather it using master or dev for HEAD?

auanasgheps commented 6 months ago

Hi, this is already implemented in the dev branch, see #65

ankorite commented 6 months ago

Isn't that for separate config files for snapraid-aio-script and not for snapraid itself? I guess I could make a second config for snapraid-aio-script and change SNAPRAID_BIN="/usr/bin/snapraid" to SNAPRAID_BIN="/usr/bin/snapraid -c /path/to/config" for my second array.

auanasgheps commented 6 months ago

Correct! You can reference another config file. This is the entry, you don't have to change SNAPRAID_BIN

SNAPRAID_CONF="/etc/snapraid.conf"

ankorite commented 6 months ago

Thanks! I must have missed it when I was going through the code. If I have any issues I will open a new ticket.