Skip to content

Commit 75421d8

Browse files
Update modules/tags/acme.nix
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 918d8a3 commit 75421d8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

modules/tags/acme.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ in {
9696
set -euo pipefail
9797
9898
if mountpoint -q ${dbPath}; then
99-
exit 0
99+
mounted_source="$(findmnt -n -T ${dbPath} -o SOURCE || true)"
100+
if [[ "$mounted_source" == "${dbCryptPath}" ]]; then
101+
exit 0
102+
fi
103+
echo "unexpected mount at ${dbPath}: $mounted_source" >&2
104+
exit 1
100105
fi
101106
102107
if [[ ! -s ${dbKeySealed} ]]; then

0 commit comments

Comments
 (0)