2017-04-08 04:04:27 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-03-18 04:22:38 +01:00
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
2024-02-22 22:04:18 +01:00
|
|
|
memory_needed="2560"
|
|
|
|
ruby_version=3.2.2
|
|
|
|
nodejs_version=20
|
2020-05-26 13:19:50 +02:00
|
|
|
|
2024-02-22 22:04:18 +01:00
|
|
|
# Workaround for Mastodon on Bullseye
|
2022-02-12 22:50:42 +01:00
|
|
|
# See https://github.com/mastodon/mastodon/issues/15751#issuecomment-873594463
|
2024-02-22 22:04:18 +01:00
|
|
|
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
|
2022-02-12 22:50:42 +01:00
|
|
|
|
2019-03-18 04:22:38 +01:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|