ronggang/transmission-web-control

Install script failed on DSM 6.2.3 due to unsupported wget option (--no-check-certificate)

helixzz opened this issue · 2 comments

如果反馈BUG,请提供以下信息,如果可能,同时提供英文描述,谢谢。

  • Transmssion 版本: 3.00-19 (from SynoCommunity)
  • Tr Web Control 版本: Latest
  • 浏览器名称及版本: Not related
  • 问题描述: 在 DSM 6.2.3 (25426, DS918+, 黑群晖) 上运行一键安装脚本会因为群晖 DSM 系统中自带的 wget 命令不支持 --no-check-certificate 选项而失败。不论是手动执行还是通过 DSM 的计划任务执行,都会受到影响。
  • 绕过方法:
    • 替换 DSM 中的 wget binary;
    • 下载一键安装脚本并手动删掉所有 --no-check-certificate 参数。

For English User

Please provide the following information.

  • Transmssion version: 3.00-19 (from SynoCommunity)
  • Tr Web Control version: Latest
  • Browser name & version: Not related
  • Problem description: One-key installation script will fail due to wget binary in DSM 6.2.3 doesn't support the --no-check-certificate option. This problem affects all methods running the installation script including manual execution and cron jobs. There are workarounds though - either by replacing the wget binray in DSM, or by download the installation script and manually remove all "--no-check-certificate" options before executing.

FYI:

root@HeliXZz-DSM:~# curl -s https://gitee.com/culturist/transmission-web-control/raw/master/release/install-tr-control-gitee.sh | bash -s auto 
/bin/whoami
wget: unrecognized option `--no-check-certificate'
...

root@HeliXZz-DSM:~# which wget
/opt/bin/wget

root@HeliXZz-DSM:~# wget --version
GNU Wget 1.12 built on linux-gnu.
+digest +ipv6 -nls -ntlm +opie +md5/builtin -https -gnutls -openssl -iri 
...

EDIT: The DSM built-in wget even doesn't support HTTPS. I will suggest always using cURL instead.

root@HeliXZz-DSM:~# wget https://gitee.com/culturist/transmission-web-control/raw/master/release/install-tr-control-gitee.sh 
https://gitee.com/culturist/transmission-web-control/raw/master/release/install-tr-control-gitee.sh: HTTPS support not compiled in.

UPDATE: It turned out that it's ipkg who altered the default wget binary in DSM. While installing ipkg, it installs a wget package that much older than the one DSM builts in. Uninstalling the additional wget binady solves the problem.