mirror of https://github.com/1Panel-dev/1Panel
parent
12dcb4d646
commit
abedc724df
|
@ -221,6 +221,7 @@ func handleTar(sourceDir, targetDir, name, exclusionRules string) error {
|
|||
|
||||
excludes := strings.Split(exclusionRules, ",")
|
||||
excludeRules := ""
|
||||
excludes = append(excludes, "*.sock")
|
||||
for _, exclude := range excludes {
|
||||
if len(exclude) == 0 {
|
||||
continue
|
||||
|
|
|
@ -215,6 +215,7 @@ func handleSnapTar(sourceDir, targetDir, name, exclusionRules string) error {
|
|||
|
||||
exStr := ""
|
||||
excludes := strings.Split(exclusionRules, ";")
|
||||
excludes = append(excludes, "*.sock")
|
||||
for _, exclude := range excludes {
|
||||
if len(exclude) == 0 {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue