diff options
| author | yalh76 <yalh@yahoo.com> | 2022-01-31 19:35:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-31 19:35:13 +0100 |
| commit | 1739904d6799f9a10addc650ea316cf5d0cc00c9 (patch) | |
| tree | 419564b62f0afe08d88a5528e825ba899c86ecfc /scripts/_common.sh | |
| parent | df52f82e19c7f24a4dad26cb03b36f94201186a9 (diff) | |
| parent | b2e89a55dfa2102faf300d95d615f9f3ac1aac5b (diff) | |
| download | mastodon_ynh-1739904d6799f9a10addc650ea316cf5d0cc00c9.tar.gz mastodon_ynh-1739904d6799f9a10addc650ea316cf5d0cc00c9.tar.bz2 mastodon_ynh-1739904d6799f9a10addc650ea316cf5d0cc00c9.zip | |
Merge pull request #300 from YunoHost-Apps/testing
[enh] Workaround for bullseye
Diffstat (limited to 'scripts/_common.sh')
| -rw-r--r-- | scripts/_common.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh index c861376..168251c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -13,6 +13,28 @@ RUBY_VERSION="2.7.2" NODEJS_VERSION="12" +# Workaround for Mastodon on Bullseye +# See https://github.com/mastodon/mastodon/issues/15751#issuecomment-873594463 +if [ "$(lsb_release --codename --short)" = "bullseye" ]; then + case $YNH_ARCH in + amd64) + arch="x86_64" + ;; + arm64) + arch="aarch64" + ;; + armel|armhf) + arch="arm" + ;; + i386) + arch="i386" + ;; + esac + ld_preload="LD_PRELOAD=/usr/lib/$arch-linux-gnu/libjemalloc.so" +else + ld_preload="" +fi + #================================================= # PERSONAL HELPERS #================================================= |
