aria2: Fix aria2.init start issue 19350/head
authorNaraku J <74468372+Narakuku@users.noreply.github.com>
Fri, 8 Apr 2022 08:10:55 +0000 (10:10 +0200)
committerStan Grishin <stangri@melmac.ca>
Mon, 12 Sep 2022 19:34:12 +0000 (19:34 +0000)
Re-mount '$config_file' inside the '$config_dir' will cause aria2 process unable to start.

Signed-off-by: Naraku J <74468372+Narakuku@users.noreply.github.com>
(cherry picked from commit 3eba8468e1e93e5f66df20aa3f8ebe5d3f1cffea)

net/aria2/Makefile
net/aria2/files/aria2.init

index 3a00d026deb682a648570664bb29494e66a7b48f..726ca35d6efda7a12dbf0a4d56959565be7c2b05 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=aria2
 PKG_VERSION:=1.36.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
index 41f0005005d3fbf1ba9d9561a6e3ba79c3d986fd..deef3077fa240e6fdd4ce25682771a7e1467aec3 100755 (executable)
@@ -341,7 +341,7 @@ aria2_start() {
                procd_set_param user "$user"
 
        procd_add_jail "$NAME.$section" log
-       procd_add_jail_mount "$config_file"
+       procd_add_jail_mount "$ca_certificate" "$certificate" "$rpc_certificate" "$rpc_private_key"
        procd_add_jail_mount_rw "$dir" "$config_dir" "$log"
        procd_close_instance
 }