1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: 压缩增加 *.socket 排除规则 (#6196)

This commit is contained in:
ssongliu 2024-08-21 15:12:50 +08:00 committed by GitHub
parent 596d4aceb6
commit 24e780b984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,7 @@ func handleTar(sourceDir, targetDir, name, exclusionRules string, secret string)
excludes := strings.Split(exclusionRules, ",")
excludeRules := ""
excludes = append(excludes, "*.sock")
excludes = append(excludes, "*.socket")
for _, exclude := range excludes {
if len(exclude) == 0 {
continue

View File

@ -232,6 +232,7 @@ func handleSnapTar(sourceDir, targetDir, name, exclusionRules string, secret str
exStr := ""
excludes := strings.Split(exclusionRules, ";")
excludes = append(excludes, "*.sock")
excludes = append(excludes, "*.socket")
for _, exclude := range excludes {
if len(exclude) == 0 {
continue