mirror of
https://github.com/openshift/openshift-ansible-contrib.git
synced 2026-02-05 09:45:58 +01:00
Fix trust anchors backup when file does not exist (#1096)
This commit is contained in:
@@ -31,7 +31,7 @@ ocpfiles(){
|
||||
|
||||
otherfiles(){
|
||||
mkdir -p ${BACKUPLOCATION}/etc/sysconfig
|
||||
mkdir -p ${BACKUPLOCATION}/etc/pki/ca-trust/source/anchors
|
||||
mkdir -p ${BACKUPLOCATION}/etc/pki/ca-trust/source
|
||||
echo "Exporting other important files to ${BACKUPLOCATION}"
|
||||
if [ -f /etc/sysconfig/flanneld ]
|
||||
then
|
||||
@@ -45,8 +45,8 @@ otherfiles(){
|
||||
cp -aR /etc/cni ${BACKUPLOCATION}/etc/
|
||||
fi
|
||||
cp -aR /etc/dnsmasq* ${BACKUPLOCATION}/etc/
|
||||
cp -aR /etc/pki/ca-trust/source/anchors/* \
|
||||
${BACKUPLOCATION}/etc/pki/ca-trust/source/anchors/
|
||||
cp -aR /etc/pki/ca-trust/source/anchors \
|
||||
${BACKUPLOCATION}/etc/pki/ca-trust/source/
|
||||
}
|
||||
|
||||
packagelist(){
|
||||
|
||||
Reference in New Issue
Block a user