Fix array-stop event hook folder name (disks_unmounting -> unmounting_disks)
Unraid's real event name is unmounting_disks, not disks_unmounting — the mismatch meant emhttp_event never found this hook, so array_stopping.sh never ran on real array stop.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Varaverk: run array_stopping.sh on array stop (foreground — blocks until done).
|
||||
# Direct bash call to avoid PHP/scheduler chain failing silently at shutdown time.
|
||||
SCRIPTS_DIR="/boot/config/plugins/varaverk"
|
||||
cfg="$SCRIPTS_DIR/varaverk.cfg"
|
||||
[[ -f "$cfg" ]] && _sd=$(grep -oP '(?<=^SCRIPTS_DIR=")[^"]+' "$cfg" 2>/dev/null) && [[ -n "$_sd" ]] && SCRIPTS_DIR="$_sd"
|
||||
runner="$SCRIPTS_DIR/Plugin/unraid/run_job.sh"
|
||||
script="$SCRIPTS_DIR/Orchestrators/array_stopping.sh"
|
||||
[[ -f "$script" ]] && bash "$runner" "Orchestrators/array_stopping.sh" "$script"
|
||||
Reference in New Issue
Block a user