mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-09 03:04:57 -04:00
Startup/shutdown commands now have stdin
This commit is contained in:
parent
9a78857b31
commit
33786408f0
@ -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…
x
Reference in New Issue
Block a user