Skip to content

Commit

Permalink
Fix error message in Debian postinst
Browse files Browse the repository at this point in the history
Check whether /var/lib/xtdb is empty to prevent an error message in
Debian postinst.

Fixes #1
  • Loading branch information
dekkers committed Mar 6, 2023
1 parent af73c37 commit a65e42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debian/xtdb-http-multinode.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ case "$1" in
configure)
# We have to check if /var/lib/xtdb exists because it is created by systemd the
# first time XTDB is started and won't exists when package is freshly installed
if [ -d /var/lib/xtdb ]; then
if [ -d /var/lib/xtdb ] && [ "$(ls /var/lib/xtdb)" ]; then
for node in /var/lib/xtdb/*; do
set +e
index_version=$(ldb --db="$node/indexes" get --hex 0x06)
Expand Down

0 comments on commit a65e42e

Please sign in to comment.