Compare commits
2 Commits
experiment
...
v0.5.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc6ee2f020 | ||
|
|
fce0fc0215 |
@@ -163,4 +163,10 @@
|
||||
- Add an option to skip the repair worker for a specific arr
|
||||
- Arr specific uncached downloading option
|
||||
- Option to download uncached torrents from UI
|
||||
- Remove QbitTorrent Log level(Use the global log level)
|
||||
- Remove QbitTorrent Log level(Use the global log level)
|
||||
|
||||
#### 0.5.1
|
||||
|
||||
- Faster import by prefetching newly downloaded torrents
|
||||
- Fix UMASK issue due to the docker container
|
||||
- Arr-Selective uncached downloading
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
"sync"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func Start(ctx context.Context) error {
|
||||
@@ -26,8 +25,7 @@ func Start(ctx context.Context) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid UMASK value: %s", umaskStr)
|
||||
}
|
||||
// Set umask
|
||||
syscall.Umask(int(umask))
|
||||
SetUmask(int(umask))
|
||||
}
|
||||
|
||||
cfg := config.GetConfig()
|
||||
|
||||
9
cmd/decypharr/umask_unix.go
Normal file
9
cmd/decypharr/umask_unix.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !windows
|
||||
|
||||
package decypharr
|
||||
|
||||
import "syscall"
|
||||
|
||||
func SetUmask(umask int) {
|
||||
syscall.Umask(umask)
|
||||
}
|
||||
8
cmd/decypharr/umask_win.go
Normal file
8
cmd/decypharr/umask_win.go
Normal file
@@ -0,0 +1,8 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package decypharr
|
||||
|
||||
func SetUmask(umask int) {
|
||||
// No-op on Windows
|
||||
}
|
||||
Reference in New Issue
Block a user