Skip to content

Commit

Permalink
snapcraft/commands/daemon.start: consistently use mkdir -p /etc/ovn
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
(cherry picked from commit e383dcb)
  • Loading branch information
simondeziel authored and tomponline committed Apr 18, 2024
1 parent a2ec7a2 commit 2fc0a0d
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 2fc0a0d

Please sign in to comment.