[PR #4892] [CLOSED] Update Debian preinst for [Bug]: Debian ugprade fails with exit 9 #4888 #4367

Closed
opened 2026-04-25 00:19:27 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4892
Author: @Galen007
Created: 12/3/2025
Status: Closed

Base: masterHead: Galen007-patch-1


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 build/debian/DEBIAN/preinst (+2 -2)

📄 Description

Brief summary

grep -q stops the getent execution because it finds the searched expression, this causes an non zero exitcode which stops the script because of the "set -o pipefail". This is only if the user already exists.

Which issue is fixed?

Fixes #4888

In-depth Description

add a true to the getent, makes sure the if condition above uses the exitcode of the grep instead of the getent.

How have you tested this?

manually patched current package and installation worked fine.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4892 **Author:** [@Galen007](https://github.com/Galen007) **Created:** 12/3/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `Galen007-patch-1` --- ### 📝 Commits (1) - [`84c790d`](https://github.com/advplyr/audiobookshelf/commit/84c790d1cfff272197ee3ef4dce307638a9827a9) Update preinst ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `build/debian/DEBIAN/preinst` (+2 -2) </details> ### 📄 Description ## Brief summary grep -q stops the getent execution because it finds the searched expression, this causes an non zero exitcode which stops the script because of the "set -o pipefail". This is only if the user already exists. ## Which issue is fixed? Fixes #4888 ## In-depth Description add a true to the getent, makes sure the if condition above uses the exitcode of the grep instead of the getent. ## How have you tested this? manually patched current package and installation worked fine. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:19:27 +02:00
adam closed this issue 2026-04-25 00:19:27 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4367