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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
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 |
|
|
|