aboutsummaryrefslogtreecommitdiff
path: root/scripts/_common.sh
diff options
context:
space:
mode:
authorTagada <36127788+Tagadda@users.noreply.github.com>2025-01-02 14:27:38 +0100
committerGitHub <noreply@github.com>2025-01-02 14:27:38 +0100
commit31c04e0d3ad88e7bac36aa61ac6f9b44fca141b0 (patch)
treeceaad486f2b5648d40d8940687fa22b75eb5abed /scripts/_common.sh
parent8102fffa52a4e3279bba9fbdafb3a0e5b1fe3e17 (diff)
parent0595ab38e0e46f6e2b68a1404f3bb5ce8528a5d0 (diff)
downloadmastodon_ynh-31c04e0d3ad88e7bac36aa61ac6f9b44fca141b0.tar.gz
mastodon_ynh-31c04e0d3ad88e7bac36aa61ac6f9b44fca141b0.tar.bz2
mastodon_ynh-31c04e0d3ad88e7bac36aa61ac6f9b44fca141b0.zip
Merge pull request #478 from YunoHost-Apps/ci-auto-update-4.3.2
Upgrade to v4.3.2
Diffstat (limited to 'scripts/_common.sh')
-rw-r--r--scripts/_common.sh43
1 files changed, 18 insertions, 25 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh
index a2ba0b8..0dbcc15 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -5,33 +5,26 @@
#=================================================
memory_needed="2560"
-ruby_version=3.2.3
+ruby_version=3.3.5
nodejs_version=20
-# 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)
- 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=""
-fi
+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
#=================================================
# PERSONAL HELPERS