fix nginx reload flags '-c'

This commit is contained in:
Chuanjian Wang 2017-05-11 13:02:56 +08:00
parent 8ca5fbeece
commit 9f32b74fea
No known key found for this signature in database
GPG key ID: D6B63261AEF77C53

View file

@ -249,7 +249,7 @@ func (n NGINXController) Reload(data []byte) ([]byte, bool, error) {
return nil, false, err return nil, false, err
} }
o, e := exec.Command(n.binary, "-s", "reload").CombinedOutput() o, e := exec.Command(n.binary, "-s", "reload", "-c", cfgPath).CombinedOutput()
return o, true, e return o, true, e
} }