mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-04-14 20:05:12 +00:00
Update install-tr-control.sh
Please either use find to search only in common directories like i propose or use "-mount" parameter to a find command which would prevent scanning mounted external drives. In my case current version takes more than 30 minutes to complete scan due to external drive mount points..
This commit is contained in:
parent
ba0cc207cc
commit
01d170e1ab
|
@ -160,7 +160,7 @@ findWebFolder() {
|
|||
showLog "$ROOT_FOLDER/web $MSG_AVAILABLE."
|
||||
else
|
||||
showLog "$MSG_THE_SPECIFIED_DIRECTORY_DOES_NOT_EXIST"
|
||||
ROOT_FOLDER=`find / -name 'web' -type d 2>/dev/null| grep 'transmission/web' | sed 's/\/web$//g'`
|
||||
ROOT_FOLDER=`find /usr /etc /home /root -name 'web' -type d 2>/dev/null| grep 'transmission/web' | sed 's/\/web$//g'`
|
||||
|
||||
if [ -d "$ROOT_FOLDER/web" ]; then
|
||||
WEB_FOLDER="$ROOT_FOLDER/web"
|
||||
|
|
Loading…
Reference in New Issue
Block a user