From 6902ede5b74a32400da0a6dcd5c077aea404de4f Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Fri, 4 Aug 2023 20:39:33 +0100 Subject: [PATCH] remove special case from update script --- rel/files/bin/pleroma_ctl | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/rel/files/bin/pleroma_ctl b/rel/files/bin/pleroma_ctl index e0e6d1b5a..f05e3cd57 100755 --- a/rel/files/bin/pleroma_ctl +++ b/rel/files/bin/pleroma_ctl @@ -3,23 +3,18 @@ detect_flavour() { arch="amd64" - # Special cases - if grep -qe "VERSION_CODENAME=jammy" /etc/os-release; then - echo "$arch-ubuntu-jammy" + if getconf GNU_LIBC_VERSION >/dev/null; then + libc_postfix="" + elif [ "$(ldd 2>&1 | head -c 9)" = "musl libc" ]; then + libc_postfix="-musl" + elif [ "$(find /lib/libc.musl* | wc -l)" ]; then + libc_postfix="-musl" else - if getconf GNU_LIBC_VERSION >/dev/null; then - libc_postfix="" - elif [ "$(ldd 2>&1 | head -c 9)" = "musl libc" ]; then - libc_postfix="-musl" - elif [ "$(find /lib/libc.musl* | wc -l)" ]; then - libc_postfix="-musl" - else - echo "Unsupported libc" >&2 - exit 1 - fi - - echo "$arch$libc_postfix" + echo "Unsupported libc" >&2 + exit 1 fi + + echo "$arch$libc_postfix" } detect_branch() {