replaced sudo with hardcoded nix sudo path

may change later
This commit is contained in:
2026-06-06 12:27:18 +02:00
parent 6a5a7a7116
commit f1012fe2bc

View File

@@ -64,7 +64,7 @@ func unlockZFSHandler(w http.ResponseWriter, r *http.Request) {
unlockMutex.Lock()
defer unlockMutex.Unlock()
cmd := exec.CommandContext(ctx, "sudo", unlockCommand)
cmd := exec.CommandContext(ctx, "/run/wrappers/bin/sudo", unlockCommand)
cmd.Stdin = strings.NewReader(payload.Passphrase)