Skip to content

Commit

Permalink
Merge pull request canonical#422 from simondeziel/etc-ovn-mkdir-race
Browse files Browse the repository at this point in the history
snapcraft/commands/daemon.start: consistently use `mkdir -p /etc/ovn`
  • Loading branch information
tomponline authored Apr 18, 2024
2 parents 9f3476a + e383dcb commit 074943c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snapcraft/commands/daemon.start
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 074943c

Please sign in to comment.