1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00
glitchsoc_ynh/scripts/_common.sh

42 lines
968 B
Bash
Raw Normal View History

2017-04-08 04:04:27 +02:00
#!/bin/bash
2019-03-18 04:22:38 +01:00
#=================================================
# COMMON VARIABLES
#=================================================
2020-05-26 13:19:50 +02:00
MEMORY_NEEDED="2560"
2024-02-15 09:46:11 +01:00
RUBY_VERSION="3.2.3"
2021-03-07 20:17:05 +01:00
2024-02-15 09:46:11 +01:00
NODEJS_VERSION="20"
2020-08-09 10:39:43 +02:00
2024-02-22 19:45:40 +01:00
# Workaround for Mastodon on Bullseye and later
2022-02-12 22:50:42 +01:00
# See https://github.com/mastodon/mastodon/issues/15751#issuecomment-873594463
2024-02-22 19:45:40 +01:00
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"
2022-02-12 22:50:42 +01:00
2019-03-18 04:22:38 +01:00
#=================================================
# PERSONAL HELPERS
#=================================================
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================