From fd6938a12e1c5f734e34b68d67c045ccb28beebf Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 21 May 2021 21:02:34 +0530 Subject: [PATCH] manual sed --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 4be7eda..2c4fbc6 100755 --- a/scripts/install +++ b/scripts/install @@ -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