aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/_common.sh4
-rw-r--r--scripts/remove14
-rw-r--r--scripts/restore4
-rw-r--r--scripts/upgrade13
4 files changed, 9 insertions, 26 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 7ac14ba..9044c9c 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -5,5 +5,5 @@
#=================================================
memory_needed="2560"
-ruby_version=3.4.5
-nodejs_version=20
+ruby_version="3.4.5"
+nodejs_version="22"
diff --git a/scripts/remove b/scripts/remove
index 297786f..d2c0cb5 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -7,26 +7,18 @@ source /usr/share/yunohost/helpers
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
-# REMOVE SYSTEMD SERVICE
-#=================================================
ynh_script_progression "Removing system configurations related to $app..."
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
-if ynh_hide_warnings yunohost service status "$app-web" >/dev/null
-then
- ynh_script_progression "Removing $app-web service integration..."
+if ynh_hide_warnings yunohost service status "$app-web" >/dev/null; then
yunohost service remove "$app-web"
fi
-if ynh_hide_warnings yunohost service status "$app-sidekiq" >/dev/null
-then
- ynh_script_progression "Removing $app-sidekiq service integration..."
+if ynh_hide_warnings yunohost service status "$app-sidekiq" >/dev/null; then
yunohost service remove "$app-sidekiq"
fi
-if ynh_hide_warnings yunohost service status "$app-streaming" >/dev/null
-then
- ynh_script_progression "Removing $app-streaming service integration..."
+if ynh_hide_warnings yunohost service status "$app-streaming" >/dev/null; then
yunohost service remove "$app-streaming"
fi
diff --git a/scripts/restore b/scripts/restore
index c6939f6..cbb2d2c 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -6,8 +6,6 @@ source ../settings/scripts/ynh_add_swap
source /usr/share/yunohost/helpers
#=================================================
-# STANDARD RESTORATION STEPS
-#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
ynh_script_progression "Restoring the app main directory..."
@@ -61,8 +59,6 @@ popd
#=================================================
# RESTORE SYSTEM CONFIGURATIONS
#=================================================
-# RESTORE THE PHP-FPM CONFIGURATION
-#=================================================
ynh_script_progression "Restoring system configurations related to $app..."
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
diff --git a/scripts/upgrade b/scripts/upgrade
index 8fa7f0f..9b3c8db 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -16,11 +16,11 @@ fi
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
-
ynh_script_progression "Stopping $app's systemd service..."
- ynh_systemctl --service=${app}-web --action="stop" --log_path=/var/log/$app/$app-web.log --wait_until="Goodbye"
- ynh_systemctl --service=${app}-sidekiq --action="stop" --log_path=/var/log/$app/$app-sidekiq.log --wait_until="Bye"
- ynh_systemctl --service=${app}-streaming --action="stop" --log_path=/var/log/$app/$app-streaming.log
+
+ynh_systemctl --service=${app}-web --action="stop" --log_path=/var/log/$app/$app-web.log --wait_until="Goodbye"
+ynh_systemctl --service=${app}-sidekiq --action="stop" --log_path=/var/log/$app/$app-sidekiq.log --wait_until="Bye"
+ynh_systemctl --service=${app}-streaming --action="stop" --log_path=/var/log/$app/$app-streaming.log
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
@@ -55,11 +55,8 @@ ynh_ruby_install
ynh_nodejs_install
#=================================================
-# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
-#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
-
ynh_script_progression "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from manifest.toml
@@ -115,8 +112,6 @@ mkdir -p /var/log/$app
ynh_config_add_logrotate
#=================================================
-# RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS...)
-#=================================================
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression "Updating a config file..."