Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add apprise and ntfy support for notification, scrub logic reworked, & some misc changes #48

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
7 changes: 7 additions & 0 deletions srv/salt/omv/deploy/snapraid/files/etc-snapraid-diff_conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ SCRUB_FREQUENCY_IN_DAYS={{ config.scrubfreq }}
UPD_THRESHOLD={{ config.updthreshold }}
DEL_THRESHOLD={{ config.delthreshold }}
SCRUB_PERCENT={{ config.scrubpercent }}
{{ 'PREHASH=true' if config.prehash | to_bool else 'PREHASH=false' }}
{{ 'USE_APPRISE=true' if config.apprise | to_bool else 'USE_APPRISE=false' }}
{{ 'USE_NTFY=true' if config.ntfy | to_bool else 'USE_NTFY=false' }}
APPRISE_CMD='{{ config.apprisecmd }}'
NTFY_CMD="{{ config.ntfycmd }}"
{{ 'SEND_SNAPRAID_CMD_LOGS=true' if config.sendsnaplog | to_bool else 'SEND_SNAPRAID_CMD_LOGS=false' }}
{{ 'ALWAYS_SEND_NOTIFICATION=true' if config.sendnotifalways | to_bool else 'ALWAYS_SEND_NOTIFICATION=false' }}
Loading