From f26ef6cbfbad5faf5d85d9b3ba85a85923772460 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 17 Apr 2024 22:35:42 -0400 Subject: [PATCH] snapcraft/commands/daemon.start: consistently use `mkdir -p /etc/ovn` Signed-off-by: Simon Deziel (cherry picked from commit e383dcb449edceb7176528c3c6fb6650417819e0) --- snapcraft/commands/daemon.start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snapcraft/commands/daemon.start b/snapcraft/commands/daemon.start index 79ed27476..a63acab29 100755 --- a/snapcraft/commands/daemon.start +++ b/snapcraft/commands/daemon.start @@ -327,13 +327,13 @@ if [ "${ovn_builtin:-"false"}" = "true" ]; then ln -s "${SNAP_COMMON}/ovn" /etc/ovn elif [ -d "${SNAP_DATA}/microovn/certificates/pki" ]; then echo "=> Detected MicroOVN Content Interface" - mkdir /etc/ovn + mkdir -p /etc/ovn ln -s "${SNAP_DATA}/microovn/certificates/pki/client-cert.pem" /etc/ovn/cert_host ln -s "${SNAP_DATA}/microovn/certificates/pki/client-privkey.pem" /etc/ovn/key_host ln -s "${SNAP_DATA}/microovn/certificates/pki/cacert.pem" /etc/ovn/ovn-central.crt elif [ -d /var/snap/microovn/ ]; then echo "=> Detected MicroOVN" - mkdir /etc/ovn + mkdir -p /etc/ovn ln -s /var/snap/microovn/common/data/pki/client-cert.pem /etc/ovn/cert_host ln -s /var/snap/microovn/common/data/pki/client-privkey.pem /etc/ovn/key_host ln -s /var/snap/microovn/common/data/pki/cacert.pem /etc/ovn/ovn-central.crt