From 5787f781b7314af614f32200f4bb19a69b6d3f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 16 Jan 2024 09:37:36 +0100 Subject: [PATCH] remove change URL --- scripts/change_url | 58 ---------------------------------------------- tests.toml | 2 ++ 2 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 scripts/change_url diff --git a/scripts/change_url b/scripts/change_url deleted file mode 100644 index 5530b03..0000000 --- a/scripts/change_url +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -#================================================= -# GENERIC STARTING -#================================================= -# IMPORT GENERIC HELPERS -#================================================= - -source _common.sh -source /usr/share/yunohost/helpers - -#================================================= -# STANDARD MODIFICATIONS -#================================================= -# STOP SYSTEMD SERVICE -#================================================= -ynh_script_progression --message="Stopping a systemd service..." --weight=1 - -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" - -#================================================= -# MODIFY URL IN NGINX CONF -#================================================= -ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1 - -ynh_change_url_nginx_config - -#================================================= -# ADD A CONFIGURATION -#================================================= -ynh_script_progression --message="Adding peertube configuration file..." - -ynh_replace_string --match_string="hostname: '$old_domain'" --replace_string="hostname: '$new_domain'" --target_file="$install_dir/config/production.yaml" - -#================================================= -# SPECIFIC MODIFICATIONS -#================================================= -ynh_script_progression --message="updating host..." - -pushd "$install_dir" - ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_npm run update-host -popd - -#================================================= -# GENERIC FINALISATION -#================================================= -# START SYSTEMD SERVICE -#================================================= -ynh_script_progression --message="Starting a systemd service..." --weight=1 - -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="HTTP server listening on 127.0.0.1" - -#================================================= -# END OF SCRIPT -#================================================= - -ynh_script_progression --message="Change of URL completed for $app" --last diff --git a/tests.toml b/tests.toml index 16af213..f9475b1 100644 --- a/tests.toml +++ b/tests.toml @@ -6,6 +6,8 @@ test_format = 1.0 # Tests to run # ------------ + exclude = ["change_url"] + # ------------------------------- # Commits to test upgrade from # -------------------------------