Debian: Updates related to tar command
The tar command on Debian will not accept a wildcard as the filename unless --wildcards is provided. This argument has no impact on CentOS. Test Plan: Build/Bootstrap/Unlock on Debian AIO-SX + restore Build/Bootstrap/Unlock on CentOS STD + DC Story: 2010165 Task: 45879 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I1f1199735f596bce53abbba75141daa87f2d465d
This commit is contained in:
@@ -48,14 +48,14 @@
|
||||
|
||||
- name: Restore registry.central certs (/etc/docker/certs.d)
|
||||
command: >-
|
||||
tar -C {{ docker_cert_dir }} -xpf {{ restore_data_file }}
|
||||
tar -C {{ docker_cert_dir }} -xpf {{ restore_data_file }} --wildcards
|
||||
--overwrite --transform='s,{{ archive_docker_cert_dir }},,' '{{ archive_docker_cert_dir }}/registry.central*'
|
||||
args:
|
||||
warn: false
|
||||
|
||||
- name: Restore registry.central certs (opt/platform/config/...)
|
||||
command: >-
|
||||
tar -C {{ config_permdir }} -xpf {{ restore_data_file }}
|
||||
tar -C {{ config_permdir }} -xpf {{ restore_data_file }} --wildcards
|
||||
--overwrite --transform='s,{{ archive_config_permdir }},,' '{{ archive_config_permdir }}/registry.central*'
|
||||
args:
|
||||
warn: false
|
||||
|
||||
@@ -66,10 +66,10 @@
|
||||
state: absent
|
||||
when: banner_result.rc == 0
|
||||
|
||||
- name: Extract ssl_ca certifcate from backup archive
|
||||
- name: Extract ssl_ca certificate from backup archive
|
||||
command: >-
|
||||
tar -xf {{ restore_data_file }} -C {{ temp_ssl_ca_dir }} -p --transform='s,.*/,,'
|
||||
*/{{ temp_ssl_ca_file }}*
|
||||
--wildcards */{{ temp_ssl_ca_file }}*
|
||||
args:
|
||||
warn: false
|
||||
failed_when: false
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
- name: Restore Helm Overrides dump file
|
||||
command: >-
|
||||
tar -C {{ helm_overrides_dir.path }} -xpf {{ target_backup_dir }}/{{ backup_filename }}
|
||||
--transform='s,.*/,,' '*/helm_overrides*.sql'
|
||||
--wildcards --transform='s,.*/,,' '*/helm_overrides*.sql'
|
||||
args:
|
||||
warn: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user