mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
hotfix(vpn): inject cmder object for up/down commands and fix cleanup panic
This commit is contained in:
@@ -100,10 +100,12 @@ type PublicIPLoop interface {
|
||||
ClearData() (err error)
|
||||
}
|
||||
|
||||
type CmdStarter interface {
|
||||
type Cmder interface {
|
||||
Start(cmd *exec.Cmd) (
|
||||
stdoutLines, stderrLines <-chan string,
|
||||
waitError <-chan error, startErr error)
|
||||
RunAndLog(ctx context.Context, command string,
|
||||
logger command.Logger) (err error)
|
||||
}
|
||||
|
||||
type HealthChecker interface {
|
||||
@@ -121,7 +123,3 @@ type Service interface {
|
||||
Start() (runError <-chan error, err error)
|
||||
Stop() error
|
||||
}
|
||||
|
||||
type Cmder interface {
|
||||
RunAndLog(ctx context.Context, command string, logger command.Logger) (err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user