rclone: fix configuration saving
authorLiangbin Lian <[email protected]>
Fri, 12 Apr 2024 03:43:46 +0000 (11:43 +0800)
committerTianling Shen <[email protected]>
Wed, 5 Feb 2025 07:57:46 +0000 (15:57 +0800)
commit2c55293f2af4878986d2f3550bf08c6e55bd4b68
treeae5d5eb99f460171eec9fe8abfe6db602bf8bbb7
parent610ebcbb9813b096198e14b3af3b02ab66551e96
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 <[email protected]>
[split chown command, wrap commit message]
Signed-off-by: Tianling Shen <[email protected]>
(cherry picked from commit bcd87dd8b607a1888fe5ceb521a619d068a28bbe)
net/rclone/Makefile
net/rclone/files/rclone.init