mirror of
https://github.com/YunoHost-Apps/woodpecker_ynh.git
synced 2024-09-03 20:35:57 +02:00
Fix host without trailing slash
This commit is contained in:
parent
21429bd07d
commit
78674d286a
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue