2017-04-08 04:04:27 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-03-18 04:22:38 +01:00
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# dependencies used by the app
|
2022-01-04 15:32:36 +01:00
|
|
|
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"
|
2022-05-29 15:54:35 +02:00
|
|
|
build_pkg_dependencies=""
|
2019-03-18 04:22:38 +01:00
|
|
|
|
2022-05-29 15:54:35 +02:00
|
|
|
memory_needed="2560"
|
|
|
|
ruby_version=2.7.2
|
|
|
|
nodejs_version=12
|
2020-08-09 10:39:43 +02:00
|
|
|
|
2022-01-24 15:08:41 +01:00
|
|
|
# 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
|
|
|
|
|
2019-03-18 04:22:38 +01:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|