mirror of
https://github.com/YunoHost-Apps/jackett_ynh.git
synced 2024-09-03 19:26:28 +02:00
add change-url support
This commit is contained in:
parent
8ee929e360
commit
5684dcfcc4
1 changed files with 3 additions and 0 deletions
|
@ -86,6 +86,9 @@ then
|
||||||
# Set global variables for NGINX helper
|
# Set global variables for NGINX helper
|
||||||
domain="$old_domain"
|
domain="$old_domain"
|
||||||
path_url="$new_path"
|
path_url="$new_path"
|
||||||
|
match_string=$(echo \"BasePathOverride\": \"$old_path\")
|
||||||
|
target_string=$(echo \"BasePathOverride\": \"$new_path\")
|
||||||
|
sed --in-place "s@${match_string}@${target_string}@g" "$final_path/.config/Jackett/ServerConfig.json"
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue