From f6c09a2562a3865a3e17a58ad00322a21dbef567 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 28 Jan 2024 01:16:11 +0100 Subject: [PATCH 1/2] fix app conf in change url script --- scripts/change_url | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index ae914ad..3f7d8fe 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -25,6 +25,17 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config +#================================================= +# MODIFY URL IN WOODPECKER CONF +#================================================= +ynh_script_progression --message="Updating configuration file..." --weight=1 + +path_no_trailing_slash=${path%/} + +ynh_add_config --template="woodpecker-server.conf" --destination="$install_dir/woodpecker-server.conf" +chmod 400 "$install_dir/woodpecker-server.conf" +chown "$app:$app" "$install_dir/woodpecker-server.conf" + #================================================= # GENERIC FINALISATION #================================================= From bf3d8e1cbd3fb9b81ab63cb6ee3a7916a9b2a27b Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 28 Jan 2024 01:30:15 +0100 Subject: [PATCH 2/2] Update change_url --- scripts/change_url | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/change_url b/scripts/change_url index 3f7d8fe..7d4a805 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -31,6 +31,7 @@ ynh_change_url_nginx_config ynh_script_progression --message="Updating configuration file..." --weight=1 path_no_trailing_slash=${path%/} +_woodpecker_set_forge_config ynh_add_config --template="woodpecker-server.conf" --destination="$install_dir/woodpecker-server.conf" chmod 400 "$install_dir/woodpecker-server.conf"