rclone: fix configuration saving
authorLiangbin Lian <jjm2473@gmail.com>
Fri, 12 Apr 2024 03:43:46 +0000 (11:43 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Fri, 13 Dec 2024 11:57:36 +0000 (19:57 +0800)
commitbcd87dd8b607a1888fe5ceb521a619d068a28bbe
tree392e7552c043315ae5882cf0470b319e5912afee
parent4cc56eb9e0cd78ef0071ad863a305b88e4681e63
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 <jjm2473@gmail.com>
[split chown command, wrap commit message]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
net/rclone/Makefile
net/rclone/files/rclone.init