diff --git a/background.go b/background.go index aa21d5a..24924d0 100644 --- a/background.go +++ b/background.go @@ -18,7 +18,7 @@ import ( "github.com/franela/goreq" ) -const defaultDownloadTimeout = 30 * time.Minute +const defaultDownloadTimeout = 2 * time.Hour var background = &Background{ sm: syncmap.New(), diff --git a/main.go b/main.go index 97e84e9..35ded49 100644 --- a/main.go +++ b/main.go @@ -1119,6 +1119,7 @@ func main() { } } + os.Setenv("TMPDIR", "/sdcard/") if *fDaemon && os.Getenv("ATX_AGENT") == "" { runDaemon() return