Skip to content

Instantly share code, notes, and snippets.

@mmdriley
Last active February 24, 2023 01:12
Show Gist options
  • Save mmdriley/5c04ac65fad1704a25a972be2f6372dc to your computer and use it in GitHub Desktop.
Save mmdriley/5c04ac65fad1704a25a972be2f6372dc to your computer and use it in GitHub Desktop.
enforce_inherit_acl
#!/bin/bash
# put in: /volume1/\@appdata/sabnzbd/scripts/
# then enable in UI
set -o errexit -o nounset -o pipefail
# Recurse into subdirs with `find`. It always touches F before F/contents.
find "${SAB_COMPLETE_DIR}" -exec synoacltool -enforce-inherit '{}' ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment