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:
parent
596d4aceb6
commit
24e780b984
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user