1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jackett_ynh.git synced 2024-09-03 19:26:28 +02:00

manual sed

This commit is contained in:
Navan Chauhan 2021-05-21 21:02:34 +05:30
parent ddf198070f
commit fd6938a12e

View file

@ -114,6 +114,8 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --l
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
ynh_replace_string --match_string="BasePathOverride": null, --replace_string="BasePathOverride": "$path_url", --target_file="$final_path/.config/Jackett/ServerConfig.json"
target_string=$(echo \"BasePathOverride\": \"$path_url\")
gsed --in-place "s@\"BasePathOverride\": null@${target_string}@g" ServerConfig.json
#=================================================
# GENERIC FINALIZATION