#!/bin/sh

set -e

certs_path=$(grep base_cert_dir /etc/octavia/amphora-agent.conf | awk '{printf $3}')
umount "${certs_path}"
cryptsetup luksClose /dev/mapper/certfs-ramfs
