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 | |
| 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')
| -rw-r--r-- | scripts/_common.sh | 20 | ||||
| -rw-r--r-- | scripts/install | 8 | ||||
| -rw-r--r-- | scripts/remove | 4 | ||||
| -rw-r--r-- | scripts/restore | 8 | ||||
| -rw-r--r-- | scripts/upgrade | 8 |
5 files changed, 18 insertions, 30 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 diff --git a/scripts/install b/scripts/install index ddb0692..4b6b798 100644 --- a/scripts/install +++ b/scripts/install @@ -9,14 +9,6 @@ admin_mail=$(ynh_user_get_info --username=$admin --key=mail) ynh_app_setting_set --key=service --value="$app-web.service" #================================================= -# INSTALL DEPENDENCIES -#================================================= -ynh_script_progression "Installing Ruby and NodeJS..." - -ynh_ruby_install -ynh_nodejs_install - -#================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= ynh_script_progression "Setting up source files..." diff --git a/scripts/remove b/scripts/remove index d2c0cb5..5901cc8 100644 --- a/scripts/remove +++ b/scripts/remove @@ -36,10 +36,6 @@ ynh_safe_rm "/etc/cron.d/$app" # Remote logrotate config ynh_config_remove_logrotate -# Remove metapackage and its dependencies -ynh_ruby_remove -ynh_nodejs_remove - # Remove swap ynh_del_swap diff --git a/scripts/restore b/scripts/restore index cbb2d2c..9a706fb 100644 --- a/scripts/restore +++ b/scripts/restore @@ -38,14 +38,6 @@ ynh_script_progression "Adding $swap_needed Mo to swap..." ynh_add_swap --size=$swap_needed #================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression "Reinstalling Ruby and NodeJS..." - -ynh_ruby_install -ynh_nodejs_install - -#================================================= # BUILD APP #================================================= ynh_script_progression "Building app..." diff --git a/scripts/upgrade b/scripts/upgrade index 9b3c8db..97e9062 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -47,14 +47,6 @@ ynh_script_progression "Adding $swap_needed Mo to swap..." ynh_add_swap --size=$swap_needed #================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression "Upgrading Ruby and NodeJS..." - -ynh_ruby_install -ynh_nodejs_install - -#================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= ynh_script_progression "Upgrading source files..." |
