-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
applications/app-meta-aria2/root/etc/uci-defaults/50_app-meta-aria2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |