mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-24 01:26:47 +01:00
Startup/shutdown commands now have stdin
This commit is contained in:
parent
9a78857b31
commit
33786408f0
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ func registerCallback(c *Controller, list *[]func() error) error {
|
||||||
|
|
||||||
fn := func() error {
|
fn := func() error {
|
||||||
cmd := exec.Command(command, args...)
|
cmd := exec.Command(command, args...)
|
||||||
|
cmd.Stdin = os.Stdin
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue