mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-04-14 11:41:50 +00:00
Merge pull request #497 from slrslr/patch-1
Update install-tr-control.sh (prevent searching for web dir on external drives)
This commit is contained in:
commit
5349ff18ed
|
@ -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