From fc9ae03eb7a9065c2a102de963226f4f0bed1cbd Mon Sep 17 00:00:00 2001 From: RichardDorian Date: Tue, 7 Jul 2026 19:25:22 +0200 Subject: [PATCH] feat(storage): allow custom chown value --- plugins/storage/subcommands.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/storage/subcommands.go b/plugins/storage/subcommands.go index 3b264834c..2dec6470a 100644 --- a/plugins/storage/subcommands.go +++ b/plugins/storage/subcommands.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "path/filepath" + "strconv" "strings" "github.com/dokku/dokku/plugins/common" @@ -99,7 +100,13 @@ func ResolveChownID(chownFlag string) (string, error) { case "false": return "false", nil default: - return "", errors.New("Unsupported chown permissions") + id, err := strconv.ParseUint(chownFlag, 10, 16) + + if err != nil { + return "", errors.New("Unsupported chown permissions") + } else { + chownID = fmt.Sprint(id) + } } userns, err := isUserNamespacesEnabled()