mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
chore: use nginx.GetConfEntryPath() #1013
This commit is contained in:
parent
a75a5b7429
commit
1ba1da0d5d
3 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ type PerfOpt struct {
|
|||
|
||||
// UpdatePerfOpt updates the Nginx performance optimization settings
|
||||
func UpdatePerfOpt(opt *PerfOpt) error {
|
||||
confPath := nginx.GetConfPath("nginx.conf")
|
||||
confPath := nginx.GetConfEntryPath()
|
||||
if confPath == "" {
|
||||
return errors.New("failed to get nginx.conf path")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue