chore: use nginx.GetConfEntryPath() #1013

This commit is contained in:
Jacky 2025-05-07 11:53:56 +08:00
parent a75a5b7429
commit 1ba1da0d5d
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
3 changed files with 5 additions and 5 deletions

View file

@ -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")
}