Update docker-compose to run as root and modify permission setting in ChineseNfoRegistry to remove sudo
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
dockerfile: Dockerfile
|
||||
container_name: nas_robot
|
||||
restart: always
|
||||
privileged: true
|
||||
user: root
|
||||
networks:
|
||||
- all_in
|
||||
environment:
|
||||
|
||||
@@ -65,7 +65,7 @@ public class ChineseNfoRegistry : Registry, IChineseNfoRegistry
|
||||
var skippedCount = 0;
|
||||
|
||||
// 使用 root 角色执行 chmod -R 666 设置全部文件的读写权限
|
||||
var permission = new ProcessStartInfo("sudo", "chmod -R 666 " + tvFolder)
|
||||
var permission = new ProcessStartInfo("chmod", "-R 666 " + tvFolder)
|
||||
{
|
||||
CreateNoWindow = true,
|
||||
UseShellExecute = false
|
||||
|
||||
Reference in New Issue
Block a user