Check crio.conf before copying

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
This commit is contained in:
Ganesh Maharaj Mahalingam
2019-02-17 01:40:27 -08:00
committed by Ganesh Maharaj Mahalingam
parent 5cd217a510
commit b92dd0e5ed
+3 -1
View File
@@ -74,7 +74,9 @@ sudo chmod +x /usr/bin/kata-fc
# Also setup crio to use devicemapper
sudo mkdir -p /etc/crio/
sudo cp /usr/share/defaults/crio/crio.conf /etc/crio/crio.conf
if [ ! -f /etc/crio/crio.conf ]; then
sudo cp /usr/share/defaults/crio/crio.conf /etc/crio/crio.conf
fi
echo -e "\n[crio.runtime.runtimes.kata-qemu]\nruntime_path = \"/usr/bin/kata-runtime\"" | sudo tee -a /etc/crio/crio.conf
echo -e "\n[crio.runtime.runtimes.kata-fc]\nruntime_path = \"/usr/bin/kata-fc\"" | sudo tee -a /etc/crio/crio.conf