From ced79cd94e7ead857313965eee253bd4651c9113 Mon Sep 17 00:00:00 2001 From: Liangbin Lian <1129525450@qq.com> Date: Tue, 29 Oct 2024 11:53:30 +0800 Subject: [PATCH] aria2: fix ca_certificate path (#416) 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. --- applications/app-meta-aria2/Makefile | 2 +- .../root/etc/uci-defaults/50_app-meta-aria2 | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 applications/app-meta-aria2/root/etc/uci-defaults/50_app-meta-aria2 diff --git a/applications/app-meta-aria2/Makefile b/applications/app-meta-aria2/Makefile index 3daa1db..28d7259 100644 --- a/applications/app-meta-aria2/Makefile +++ b/applications/app-meta-aria2/Makefile @@ -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 diff --git a/applications/app-meta-aria2/root/etc/uci-defaults/50_app-meta-aria2 b/applications/app-meta-aria2/root/etc/uci-defaults/50_app-meta-aria2 new file mode 100755 index 0000000..9eb7c42 --- /dev/null +++ b/applications/app-meta-aria2/root/etc/uci-defaults/50_app-meta-aria2 @@ -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