From 78674d286a0e47940ae3ac4cc63663b479679f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 1 Oct 2023 18:53:14 +0200 Subject: [PATCH] Fix host without trailing slash --- conf/woodpecker-server.conf | 2 +- scripts/install | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/woodpecker-server.conf b/conf/woodpecker-server.conf index 3f99491..89991af 100644 --- a/conf/woodpecker-server.conf +++ b/conf/woodpecker-server.conf @@ -19,7 +19,7 @@ # Server fully qualified url of the user-facing hostname. # Default: empty # Example: WOODPECKER_HOST=http://woodpecker.example.org -WOODPECKER_HOST=https://__DOMAIN____PATH__ +WOODPECKER_HOST=https://__DOMAIN____PATH_NO_TRAILING_SLASH__ # Configures the HTTP listener port. # Default: :8000 diff --git a/scripts/install b/scripts/install index 3000711..7c974b0 100755 --- a/scripts/install +++ b/scripts/install @@ -69,6 +69,8 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Adding a 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/some_config_file" # chown $app:$app "$install_dir/some_config_file"