2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 01:57:19 +08:00

fix: s3fs卸载

This commit is contained in:
2026-01-28 07:17:10 +08:00
parent ef6b83f425
commit d4a6b5e207

View File

@@ -138,7 +138,7 @@ func (s *App) Delete(w http.ResponseWriter, r *http.Request) {
return
}
_, _ = shell.Execf(`fusermount -uz '%s'`, mount.Path)
_, _ = shell.Execf(`fusermount3 -uz '%s'`, mount.Path)
_, err2 := shell.Execf(`umount -lf '%s'`, mount.Path)
// 卸载之后再检查下是否还有挂载
if _, err = shell.Execf(`df -h | grep '%s'`, mount.Path); err == nil {