mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix: revert enable site if enable a incorrect config #199
This commit is contained in:
parent
4b567e474c
commit
9a4174e6ef
1 changed files with 1 additions and 0 deletions
|
@ -324,6 +324,7 @@ func EnableDomain(c *gin.Context) {
|
|||
// Test nginx config, if not pass then disable the site.
|
||||
output, err := nginx.TestConf()
|
||||
if err != nil {
|
||||
_ = os.Remove(enabledConfigFilePath)
|
||||
ErrHandler(c, err)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue