aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <51749973+Thovi98@users.noreply.github.com>2025-08-30 14:41:25 +0200
committerGitHub <noreply@github.com>2025-08-30 14:41:25 +0200
commit4976431397f6e9824526276bdd94d62cefb3548a (patch)
treeba818b8d7a6461684a83909b04ecad1d2fd6e665
parent3d53d933d5a0c50208494f754f4325fc8e333949 (diff)
downloadmastodon_ynh-4976431397f6e9824526276bdd94d62cefb3548a.tar.gz
mastodon_ynh-4976431397f6e9824526276bdd94d62cefb3548a.tar.bz2
mastodon_ynh-4976431397f6e9824526276bdd94d62cefb3548a.zip
ruby and nodejs resources
-rw-r--r--manifest.toml9
-rw-r--r--scripts/_common.sh2
-rw-r--r--scripts/install8
-rw-r--r--scripts/remove4
-rw-r--r--scripts/restore8
-rw-r--r--scripts/upgrade8
6 files changed, 8 insertions, 31 deletions
diff --git a/manifest.toml b/manifest.toml
index 7f0b634..152433a 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -19,7 +19,7 @@ cpe = "cpe:2.3:a:joinmastodon:mastodon"
fund = "https://joinmastodon.org/sponsors"
[integration]
-yunohost = ">= 12.0.10"
+yunohost = ">= 12.1.15"
helpers_version = "2.1"
architectures = "all"
multi_instance = true
@@ -87,3 +87,10 @@ ram.runtime = "500M"
[resources.database]
type = "postgresql"
+
+ [resources.nodejs]
+ version = "20"
+
+ [resources.ruby]
+ version = "3.4.5"
+
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 182e391..c7ff983 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -5,8 +5,6 @@
#=================================================
memory_needed="2560"
-ruby_version=3.4.5
-nodejs_version=20
case $YNH_ARCH in
amd64)
diff --git a/scripts/install b/scripts/install
index 7e400d5..38395c5 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 297786f..e97be10 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -44,10 +44,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 0becd6c..2abaa4d 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -40,14 +40,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 769b47c..1d28afd 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
-
-#=================================================
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE