From: Liangbin Lian Date: Fri, 12 Apr 2024 03:43:46 +0000 (+0800) Subject: rclone: fix configuration saving X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bcd87dd8b607a1888fe5ceb521a619d068a28bbe;p=feed%2Fpackages.git rclone: fix configuration saving The following error occurs when creating storage configuration in WEBUI: ``` Failed to save config after 10 tries: failed to create temp file for new config: open /etc/rclone/rclone.conf4258227003: permission denied ``` we should set the owner of the parent directory of the configuration file to rclone. Signed-off-by: Liangbin Lian [split chown command, wrap commit message] Signed-off-by: Tianling Shen --- diff --git a/net/rclone/Makefile b/net/rclone/Makefile index b4b23a330e..22786c5e48 100644 --- a/net/rclone/Makefile +++ b/net/rclone/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rclone PKG_VERSION:=1.68.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/rclone/rclone/tar.gz/v$(PKG_VERSION)? diff --git a/net/rclone/files/rclone.init b/net/rclone/files/rclone.init index 276a3b1914..29fe2f2d21 100755 --- a/net/rclone/files/rclone.init +++ b/net/rclone/files/rclone.init @@ -58,6 +58,7 @@ start_service() { local config_dir="${config_path%/*}" [ -d "$config_dir" ] || mkdir -p "$config_dir" touch "${config_path}" + chown rclone "${config_dir}" chown rclone "${config_path}" [ -d "/lib/upgrade/keep.d" ] || mkdir -p "/lib/upgrade/keep.d/"