mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat(site): index url #736,#310
This commit is contained in:
parent
94fcbf6362
commit
c013c468a0
20 changed files with 559 additions and 355 deletions
|
@ -37,12 +37,12 @@ func Enable(name string) (err error) {
|
|||
output := nginx.TestConf()
|
||||
if nginx.GetLogLevel(output) > nginx.Warn {
|
||||
_ = os.Remove(enabledConfigFilePath)
|
||||
return fmt.Errorf(output)
|
||||
return fmt.Errorf("%s", output)
|
||||
}
|
||||
|
||||
output = nginx.Reload()
|
||||
if nginx.GetLogLevel(output) > nginx.Warn {
|
||||
return fmt.Errorf(output)
|
||||
return fmt.Errorf("%s", output)
|
||||
}
|
||||
|
||||
go syncEnable(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue