mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
feat: added custom nginx reload/restart cmd #140
This commit is contained in:
parent
cc6a325ddd
commit
01611ef622
7 changed files with 75 additions and 144 deletions
|
@ -141,20 +141,20 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
|
|||
logPath = directive.Params
|
||||
|
||||
case "error":
|
||||
if settings.NginxLogSettings.ErrorLogPath == "" {
|
||||
if settings.NginxSettings.ErrorLogPath == "" {
|
||||
err = errors.New("settings.NginxLogSettings.ErrorLogPath is empty," +
|
||||
" see https://github.com/0xJacky/nginx-ui/wiki/Nginx-Log-Configuration for more information")
|
||||
return
|
||||
}
|
||||
logPath = settings.NginxLogSettings.ErrorLogPath
|
||||
logPath = settings.NginxSettings.ErrorLogPath
|
||||
|
||||
default:
|
||||
if settings.NginxLogSettings.AccessLogPath == "" {
|
||||
if settings.NginxSettings.AccessLogPath == "" {
|
||||
err = errors.New("settings.NginxLogSettings.AccessLogPath is empty," +
|
||||
" see https://github.com/0xJacky/nginx-ui/wiki/Nginx-Log-Configuration for more information")
|
||||
return
|
||||
}
|
||||
logPath = settings.NginxLogSettings.AccessLogPath
|
||||
logPath = settings.NginxSettings.AccessLogPath
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue