mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat(self-check): add Docker socket existence check
This commit is contained in:
parent
3944be2369
commit
7dfb6e86e6
8 changed files with 48 additions and 2 deletions
|
@ -70,7 +70,7 @@ func PerformCoreUpgrade(c *gin.Context) {
|
|||
logger.Error(err)
|
||||
return
|
||||
}
|
||||
if helper.InNginxUIOfficialDocker() {
|
||||
if helper.InNginxUIOfficialDocker() && helper.DockerSocketExists() {
|
||||
upgrader.DockerUpgrade(ws, &control)
|
||||
} else {
|
||||
upgrader.BinaryUpgrade(ws, &control)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue