[why] Solve the problem that the symbolic link cannot be established when the directory is not created
[how] Create a directory first.
Signed-off-by: cuiyili 2268260388@qq.com --- container/result-webdav/nginx.conf | 1 + 1 file changed, 1 insertion(+)
diff --git a/container/result-webdav/nginx.conf b/container/result-webdav/nginx.conf index 1feddd4..00abc30 100644 --- a/container/result-webdav/nginx.conf +++ b/container/result-webdav/nginx.conf @@ -54,6 +54,7 @@ http { end link_name = link_name..".cgz" root_path = "/srv/"..path + io.popen("mkdir -p "..root_path) io.popen("cd "..root_path.."&& ln -sf "..upload_file.." "..link_name) end