aboutsummaryrefslogtreecommitdiff
path: root/scripts/_common.sh
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-09-04 02:01:49 +0200
committerGitHub <noreply@github.com>2020-09-04 02:01:49 +0200
commitbde14cc4496445fdfed4616ac44fc9527c8369fd (patch)
tree5fbfd718e790dbe3ed4b1dc8273487bd7069520d /scripts/_common.sh
parent61a523591137c0d817ad07d2c604cd314caf0dad (diff)
parent76fb3457572c661b17032655ef594180fdb2ede6 (diff)
downloadmastodon_ynh-bde14cc4496445fdfed4616ac44fc9527c8369fd.tar.gz
mastodon_ynh-bde14cc4496445fdfed4616ac44fc9527c8369fd.tar.bz2
mastodon_ynh-bde14cc4496445fdfed4616ac44fc9527c8369fd.zip
Merge pull request #235 from YunoHost-Apps/testing
Upgrade to 3.2.0
Diffstat (limited to 'scripts/_common.sh')
-rw-r--r--scripts/_common.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 2cf8424..ad4ed8e 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -7,14 +7,18 @@
# dependencies used by the app
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-server redis-tools postgresql postgresql-contrib libidn11-dev libicu-dev libjemalloc-dev curl apt-transport-https"
-RUBY_VERSION="2.6.5"
-
-BUNDLER_VERSION="1.17.3"
-
-NODEJS_VERSION="10"
-
MEMORY_NEEDED="2560"
+if [ "$(lsb_release --codename --short)" = "buster" ]; then
+ RUBY_VERSION="2.6.6"
+ BUNDLER_VERSION="1.17.3"
+ NODEJS_VERSION="12"
+else
+ RUBY_VERSION="2.6.5"
+ BUNDLER_VERSION="1.17.3"
+ NODEJS_VERSION="10"
+fi
+
#=================================================
# PERSONAL HELPERS
#=================================================