diff options
| author | yalh76 <yalh@yahoo.com> | 2022-01-28 20:28:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-28 20:28:33 +0100 |
| commit | b2e89a55dfa2102faf300d95d615f9f3ac1aac5b (patch) | |
| tree | 419564b62f0afe08d88a5528e825ba899c86ecfc /scripts/_common.sh | |
| parent | 0becd5049e4f5858c79e012934d557dbaa8706a6 (diff) | |
| parent | 952642c6c3702080b04ef13867240d22de77b6e2 (diff) | |
| download | mastodon_ynh-b2e89a55dfa2102faf300d95d615f9f3ac1aac5b.tar.gz mastodon_ynh-b2e89a55dfa2102faf300d95d615f9f3ac1aac5b.tar.bz2 mastodon_ynh-b2e89a55dfa2102faf300d95d615f9f3ac1aac5b.zip | |
Merge pull request #299 from Tagadda/fix-bullseye
[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 #================================================= |
