mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-04-14 17:34:01 +00:00
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:
parent
9e5e369440
commit
5044faf970
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user