From eb2b8d7466e3373ca874bd3579052c9319d9c63b Mon Sep 17 00:00:00 2001 From: sbwml Date: Wed, 28 Sep 2022 14:00:05 +0800 Subject: [PATCH] alist: refresh patch --- .../001-disable-delete-of-temp-directory-at-startup.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alist/patches/001-disable-delete-of-temp-directory-at-startup.patch b/alist/patches/001-disable-delete-of-temp-directory-at-startup.patch index ad5c4bd..152f90b 100644 --- a/alist/patches/001-disable-delete-of-temp-directory-at-startup.patch +++ b/alist/patches/001-disable-delete-of-temp-directory-at-startup.patch @@ -1,6 +1,6 @@ --- a/internal/bootstrap/config.go +++ b/internal/bootstrap/config.go -@@ -55,11 +55,7 @@ func InitConfig() { +@@ -54,11 +54,7 @@ func InitConfig() { } conf.Conf.TempDir = absPath } @@ -8,8 +8,8 @@ - if err != nil { - log.Errorln("failed delete temp file:", err) - } -- err = os.MkdirAll(conf.Conf.TempDir, 0700) -+ err := os.MkdirAll(conf.Conf.TempDir, 0700) +- err = os.MkdirAll(conf.Conf.TempDir, 0777) ++ err := os.MkdirAll(conf.Conf.TempDir, 0777) if err != nil { log.Fatalf("create temp dir error: %+v", err) }