getTransmissionPath in install-tr-control.sh

I added `|| [ -f "/etc/openwrt_release" ]` on the function `getTransmissionPath()` to

~~~bash
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ] || [ -f "/etc/openwrt_release" ]; then
		ROOT_FOLDER="/usr/share/transmission"
fi
~~~

so the root folder is recognized on [OpenWRT](http://www.openwrt.org) for installation or update.
That path is align with the [OpenWRT package](https://github.com/openwrt/packages/tree/master/net/transmission-web-control)
This commit is contained in:
Euler Alves 2020-09-23 11:19:21 -03:00 committed by GitHub
parent 9e5e369440
commit 5044faf970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ getTransmissionPath() {
# 用户如知道自己的 Transmission Web 所在的目录,直接修改这个值,以避免搜索所有目录
# ROOT_FOLDER="/usr/local/transmission/share/transmission"
# Fedora 或 Debian 发行版的默认 ROOT_FOLDER 目录
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ]; then
if [ -f "/etc/fedora-release" ] || [ -f "/etc/debian_version" ] || [ -f "/etc/openwrt_release" ]; then
ROOT_FOLDER="/usr/share/transmission"
fi