1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Conditionally backup/restore dmz_config

This commit is contained in:
Harvey Kandola 2018-11-11 16:54:11 +00:00
parent 0a64afd6b5
commit c0e1bd5045
2 changed files with 10 additions and 6 deletions

View file

@ -268,7 +268,10 @@ func (b backerHandler) dmzConfig(files *[]backupItem) (err error) {
if err != nil {
return
}
*files = append(*files, backupItem{Filename: "dmz_config.json", Content: content})
if b.Spec.SystemBackup() {
*files = append(*files, backupItem{Filename: "dmz_config.json", Content: content})
}
w := ""
if !b.Spec.SystemBackup() {