Skip to content

Commit

Permalink
aria2: fix ca_certificate path (#416)
Browse files Browse the repository at this point in the history
Luci may auto enable check_certificate, but leave ca_certificate blank, makes all https tasks failed.

Set a default ca_certificate path to workaround this.
  • Loading branch information
jjm2473 authored Oct 29, 2024
1 parent 411488e commit ced79cd
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion applications/app-meta-aria2/Makefile
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
include $(TOPDIR)/rules.mk

PKG_VERSION:=1.0.0
PKG_RELEASE:=5
PKG_RELEASE:=6
META_TITLE:=Aria2下载器
META_TITLE.en:=Aria2
META_DEPENDS:=+aria2 +ariang +luci-app-aria2 +luci-i18n-aria2-zh-cn +aria2-entry-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

# fix ca_certificate
uci -q get aria2.main.ca_certificate >/dev/null && exit 0

uci -q batch <<-EOF >/dev/null
set aria2.main.ca_certificate=/etc/ssl/certs/ca-certificates.crt
commit aria2
EOF

exit 0

0 comments on commit ced79cd

Please sign in to comment.