diff --git a/Media/arr_sync.sh b/Media/arr_sync.sh index d60962e..2726da7 100755 --- a/Media/arr_sync.sh +++ b/Media/arr_sync.sh @@ -162,6 +162,8 @@ if [[ "$EUID" -ne 0 ]]; then exit 1 fi +acquire_lock + for _tool in curl jq; do if ! command -v "$_tool" >/dev/null 2>&1; then error "$_tool not found — required for arr API calls" diff --git a/Tools/bulk_permissions_repair.sh b/Tools/bulk_permissions_repair.sh index bc29783..a7a97bd 100644 --- a/Tools/bulk_permissions_repair.sh +++ b/Tools/bulk_permissions_repair.sh @@ -96,6 +96,8 @@ if [[ "$EUID" -ne 0 ]]; then exit 1 fi +acquire_lock + validate_unraid_cmd \ "/usr/local/emhttp/plugins/dynamix/scripts/notify" \ "" "" \ diff --git a/Tools/container_data_export.sh b/Tools/container_data_export.sh index eac59c8..f352ac1 100644 --- a/Tools/container_data_export.sh +++ b/Tools/container_data_export.sh @@ -86,6 +86,8 @@ if [[ "$EUID" -ne 0 ]]; then exit 1 fi +acquire_lock + validate_unraid_cmd \ "/usr/local/emhttp/plugins/dynamix/scripts/notify" \ "" "" \