1
0
Fork 0
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:
Navan Chauhan 2021-05-23 00:27:31 +05:30
parent 8ee929e360
commit 5684dcfcc4

View file

@ -86,6 +86,9 @@ then
# Set global variables for NGINX helper
domain="$old_domain"
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
ynh_add_nginx_config
fi