diff options
| author | eric_G <46165813+ericgaspar@users.noreply.github.com> | 2025-09-17 21:31:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-17 21:31:38 +0200 |
| commit | 0e9ff7e7b9f5b4ea28b345d4ec419d345ce84a40 (patch) | |
| tree | 2baf9108e18e0e8ab7ca22c169993cd2a6c2e904 /scripts/_common.sh | |
| parent | 783836fa5c5282f85a582a1dd039115da7b02436 (diff) | |
| parent | 11126008f0b77b06bbab143211e1cbee1f07a021 (diff) | |
| download | mastodon_ynh-0e9ff7e7b9f5b4ea28b345d4ec419d345ce84a40.tar.gz mastodon_ynh-0e9ff7e7b9f5b4ea28b345d4ec419d345ce84a40.tar.bz2 mastodon_ynh-0e9ff7e7b9f5b4ea28b345d4ec419d345ce84a40.zip | |
Merge pull request #519 from Thovi98/ruby-and-nodejs-resources
ruby and nodejs resources
Diffstat (limited to 'scripts/_common.sh')
| -rw-r--r-- | scripts/_common.sh | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh index 9044c9c..c7ff983 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,5 +5,21 @@ #================================================= memory_needed="2560" -ruby_version="3.4.5" -nodejs_version="22" + +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 |
