1
0
Fork 0

Compare commits

..

5 commits

Author SHA1 Message Date
Éric Gaspar
5e9ee37d70 Create PRE_INSTALL.md 2023-11-09 13:54:10 +01:00
Éric Gaspar
59d6a69489 Update manifest.toml 2023-11-09 13:47:10 +01:00
Éric Gaspar
61040b44ef Update tests.toml 2023-11-09 13:32:08 +01:00
Éric Gaspar
30bd20ece5 Update tests.toml 2023-11-09 13:22:08 +01:00
Éric Gaspar
53e548a1bd Delete change_url 2023-11-09 13:18:47 +01:00
4 changed files with 4 additions and 44 deletions

1
doc/PRE_INSTALL.md Normal file
View file

@ -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.

View file

@ -63,7 +63,6 @@ ram.runtime = "50M"
[resources.install_dir] [resources.install_dir]
[resources.permissions] [resources.permissions]
main.url = "/"
[resources.apt] [resources.apt]
packages = "ca-certificates, git, curl, tar" packages = "ca-certificates, git, curl, tar"

View file

@ -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

View file

@ -4,15 +4,16 @@ test_format = 1.0
[default] [default]
# ------------ # ------------
# Tests to run # Tests to run
# ------------ # ------------
exclude = ["install.multi"] exclude = ["install.subdir", "change_url", "install.private", "install.multi"]
# ------------------------------- # -------------------------------
# Default args to use for install # Default args to use for install
# ------------------------------- # -------------------------------
args.token = "GR1348941_Rew7obt4p9jZyQUtHLx" args.token = "9nVFksmWnF3gWKvQrBSOkviZIQhE5aRv63BG4KJX"
args.forgejo_url = "https://forgejo.com/" args.forgejo_url = "https://forgejo.com/"