From 53e548a1bdf3d910c9fc83d4efe19a0a48583e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:18:47 +0100 Subject: [PATCH 1/5] Delete change_url --- scripts/change_url | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 scripts/change_url diff --git a/scripts/change_url b/scripts/change_url deleted file mode 100644 index 3a9b28d..0000000 --- a/scripts/change_url +++ /dev/null @@ -1,41 +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 - -#================================================= -# 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" - -#================================================= -# END OF SCRIPT -#================================================= - -ynh_script_progression --message="Change of URL completed for $app" --last From 30bd20ece562684b22601985bcbed24fd302a029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:22:08 +0100 Subject: [PATCH 2/5] Update tests.toml --- tests.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests.toml b/tests.toml index aa332c5..9999fbb 100644 --- a/tests.toml +++ b/tests.toml @@ -4,15 +4,16 @@ test_format = 1.0 [default] + # ------------ # Tests to run # ------------ - exclude = ["install.multi"] + exclude = ["install.multi", "install.subdir", "install.nourl", "install.private", "install.multi"] # ------------------------------- # Default args to use for install # ------------------------------- - args.token = "GR1348941_Rew7obt4p9jZyQUtHLx" + args.token = "9nVFksmWnF3gWKvQrBSOkviZIQhE5aRv63BG4KJX" args.forgejo_url = "https://forgejo.com/" From 61040b44efabb68ffded29fe0cc27a66d76e18f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:32:08 +0100 Subject: [PATCH 3/5] Update tests.toml --- tests.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.toml b/tests.toml index 9999fbb..aa05000 100644 --- a/tests.toml +++ b/tests.toml @@ -9,7 +9,7 @@ test_format = 1.0 # Tests to run # ------------ - exclude = ["install.multi", "install.subdir", "install.nourl", "install.private", "install.multi"] + exclude = ["install.subdir", "change_url", "install.private", "install.multi"] # ------------------------------- # Default args to use for install From 59d6a69489f83911b1a5bf453204eb397e21c20e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:47:10 +0100 Subject: [PATCH 4/5] Update manifest.toml --- manifest.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index b6a96fe..a479c23 100644 --- a/manifest.toml +++ b/manifest.toml @@ -63,7 +63,6 @@ ram.runtime = "50M" [resources.install_dir] [resources.permissions] - main.url = "/" [resources.apt] packages = "ca-certificates, git, curl, tar" From 5e9ee37d70bfa05b7009d4a39f32b4bd3e691da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:54:10 +0100 Subject: [PATCH 5/5] Create PRE_INSTALL.md --- doc/PRE_INSTALL.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/PRE_INSTALL.md diff --git a/doc/PRE_INSTALL.md b/doc/PRE_INSTALL.md new file mode 100644 index 0000000..28b140d --- /dev/null +++ b/doc/PRE_INSTALL.md @@ -0,0 +1 @@ +The Forgejo runner needs to connect to a Forgejo instance and must be registered before doing so. It will give it permission to read the repositories and send back information to Forgejo such as the logs or its status. \ No newline at end of file