diff options
| author | yalh76 <yalh@yahoo.com> | 2022-09-20 19:51:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-20 19:51:55 +0200 |
| commit | de37be387cebca5b3c470e1b93692717c9ca7c7b (patch) | |
| tree | 226233c095b8708d353737031d1461bcd0a41042 /scripts/_common.sh | |
| parent | 4cbbfa233899cde7402229cb63eaf7b80714b8d2 (diff) | |
| parent | d3c3083d5d6853ff0f40a85194c542fd62dd3413 (diff) | |
| download | mastodon_ynh-de37be387cebca5b3c470e1b93692717c9ca7c7b.tar.gz mastodon_ynh-de37be387cebca5b3c470e1b93692717c9ca7c7b.tar.bz2 mastodon_ynh-de37be387cebca5b3c470e1b93692717c9ca7c7b.zip | |
Merge pull request #338 from YunoHost-Apps/fix
Fix
Diffstat (limited to 'scripts/_common.sh')
| -rw-r--r-- | scripts/_common.sh | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh index cac433c..1b9fd22 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,34 +4,36 @@ # COMMON VARIABLES #================================================= -# dependencies used by the app +# dependencies used by the app (must be on a single line) pkg_dependencies="imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3|libgdbm6 libgdbm-dev redis-tools redis-server postgresql postgresql-contrib libidn11-dev libicu-dev libjemalloc-dev curl apt-transport-https" build_pkg_dependencies="" memory_needed="2560" ruby_version=3.0.3 -nodejs_version=12 +nodejs_version=16 # 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" + case $YNH_ARCH in + amd64) + ld_preload="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so" + ;; + arm64) + ld_preload="LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libjemalloc.so" + ;; + armhf) + ld_preload="LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libjemalloc.so" + ;; + armel) + ld_preload="LD_PRELOAD=/usr/lib/arm-linux-gnueabi/libjemalloc.so" + ;; + i386) + ld_preload="LD_PRELOAD=/usr/lib/i386-linux-gnu/libjemalloc.so" + ;; + esac else - ld_preload="" + ld_preload="" fi #================================================= |
