aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <51749973+Thovi98@users.noreply.github.com>2025-08-21 18:41:51 +0200
committerGitHub <noreply@github.com>2025-08-21 18:41:51 +0200
commit9a9079042ee2923c1a5dfa59dcbe17ee3e03617d (patch)
treef103316a0690b0e7824b2275e844a9ad83c8db5b
parent2184a24d68831b7789357549db30d00423c5e510 (diff)
downloadmastodon_ynh-9a9079042ee2923c1a5dfa59dcbe17ee3e03617d.tar.gz
mastodon_ynh-9a9079042ee2923c1a5dfa59dcbe17ee3e03617d.tar.bz2
mastodon_ynh-9a9079042ee2923c1a5dfa59dcbe17ee3e03617d.zip
fixes
-rw-r--r--scripts/install19
1 files changed, 8 insertions, 11 deletions
diff --git a/scripts/install b/scripts/install
index a8ede41..b9d9219 100644
--- a/scripts/install
+++ b/scripts/install
@@ -9,7 +9,13 @@ admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
ynh_app_setting_set --key=service --value="$app-web.service"
#=================================================
-# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC)
+# INSTALL DEPENDENCIES
+#=================================================
+ynh_script_progression "Installing Ruby and NodeJS..."
+
+ynh_ruby_install
+ynh_nodejs_install
+
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@@ -22,14 +28,6 @@ chmod o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
-# INSTALL DEPENDENCIES
-#=================================================
-ynh_script_progression "Installing Ruby and NodeJS..."
-
-ynh_ruby_install
-ynh_nodejs_install
-
-#=================================================
# ADD SWAP IF NEEDED
#=================================================
ynh_script_progression "Adding swap if needed..."
@@ -79,7 +77,6 @@ ynh_script_progression "Building app..."
pushd "$install_dir/live"
# Building ruby packages
-
gem update --system
gem install bundler --no-document
ynh_hide_warnings ynh_exec_as_app $ld_preload bin/bundle config deployment 'true'
@@ -159,4 +156,4 @@ ynh_systemctl --service=${app}-streaming --action="start" --log_path=/var/log/$a
# END OF SCRIPT
#=================================================
-ynh_script_progression "Installation of $app completed"
+ynh_script_progression "Installation of $app completed" \ No newline at end of file