1
0
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:
eramoto
2019-10-15 10:29:31 +09:00
committed by Ryan Cook
parent fa5f73ae1b
commit 29ea9ea83f

View File

@@ -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(){