2 Commits

Author SHA1 Message Date
Mukhtar Akere
dc6ee2f020 fix umask for windows
Some checks failed
GoReleaser / goreleaser (push) Has been cancelled
Release Docker Build / docker (push) Has been cancelled
2025-03-23 07:14:46 +01:00
Mukhtar Akere
fce0fc0215 update changelog 2025-03-22 06:11:15 +01:00
4 changed files with 25 additions and 4 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -0,0 +1,9 @@
//go:build !windows
package decypharr
import "syscall"
func SetUmask(umask int) {
syscall.Umask(umask)
}

View File

@@ -0,0 +1,8 @@
//go:build windows
// +build windows
package decypharr
func SetUmask(umask int) {
// No-op on Windows
}