mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
bug fix: rsync can access the exclude file in Docker (close #59)
This commit is contained in:
parent
85ce9c1270
commit
198afa72cd
@ -19,6 +19,10 @@ func newDockerHook(p mirrorProvider, gCfg dockerConfig, mCfg mirrorConfig) *dock
|
|||||||
volumes := []string{}
|
volumes := []string{}
|
||||||
volumes = append(volumes, gCfg.Volumes...)
|
volumes = append(volumes, gCfg.Volumes...)
|
||||||
volumes = append(volumes, mCfg.DockerVolumes...)
|
volumes = append(volumes, mCfg.DockerVolumes...)
|
||||||
|
if len(mCfg.ExcludeFile) > 0 {
|
||||||
|
arg := fmt.Sprintf("%s:%s:ro", mCfg.ExcludeFile, mCfg.ExcludeFile)
|
||||||
|
volumes = append(volumes, arg)
|
||||||
|
}
|
||||||
|
|
||||||
options := []string{}
|
options := []string{}
|
||||||
options = append(options, gCfg.Options...)
|
options = append(options, gCfg.Options...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user