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
231 stars 37 forks source link

Add custom Healthchecks.io URL #44

Closed phidauex closed 1 year ago

phidauex commented 1 year ago

Implements a custom healthchecks.io URL, along with the associated line in the script-config.sh file. However, to maintain backward compatibility, if the variable is not set in the config file, then the main script will set it to the sensible default.

Addresses issue 32: https://github.com/auanasgheps/snapraid-aio-script/issues/32

auanasgheps commented 1 year ago

Thank you! I will look into this soon.

auanasgheps commented 1 year ago

Hi, thanks for the commit, I am now merging into dev. I will remove this section

# set default variables for backward compatibility with older config files
: ${HEALTHCHECKS_URL:="https://hc-ping.com/"}

I will do because is a requirement to use the updated config file. I know it's an inconvenience, but I haven't found another way to make things work properly.