From 0d6a701aa15978dd836b2c02afa74d660faaea44 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Sun, 7 Dec 2025 11:24:10 +1100 Subject: [PATCH] Bug fix for DSM 7.2 and earlier Fixed hard coded web_packages instead of "$share" --- syno_hdd_shutdown.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syno_hdd_shutdown.sh b/syno_hdd_shutdown.sh index 01c94f1..40ea1e2 100644 --- a/syno_hdd_shutdown.sh +++ b/syno_hdd_shutdown.sh @@ -291,9 +291,9 @@ for share in "${shares_array[@]}"; do else # DSM 7.2 and earlier # synoshare --getmap is case insensitive - path="$(synoshare --getmap web_packages | grep volume | cut -d"[" -f2 | cut -d"]" -f1)" + path="$(synoshare --getmap "$share" | grep volume | cut -d"[" -f2 | cut -d"]" -f1)" # I could also have used: - # web_pkg_path=$(/usr/syno/sbin/synoshare --get web_packages | tr '[]' '\n' | sed -n "9p") + # web_pkg_path=$(/usr/syno/sbin/synoshare --get "$share" | tr '[]' '\n' | sed -n "9p") fi # Ignore external USB and eSATA volumes