Browse Source

Bug fix for DSM 7.2 and earlier

Fixed hard coded web_packages instead of "$share"
pull/537/head
Dave Russell 2 weeks ago
committed by GitHub
parent
commit
0d6a701aa1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      syno_hdd_shutdown.sh

4
syno_hdd_shutdown.sh

@ -291,9 +291,9 @@ for share in "${shares_array[@]}"; do
else else
# DSM 7.2 and earlier # DSM 7.2 and earlier
# synoshare --getmap is case insensitive # 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: # 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 fi
# Ignore external USB and eSATA volumes # Ignore external USB and eSATA volumes

Loading…
Cancel
Save