diff --git a/scripts/change_url b/scripts/change_url index aa47eb6..8058180 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -122,7 +122,7 @@ systemctl stop transmission-daemon if [ $change_path -eq 1 ] then [ "$new_path" = "/" ] || new_path=${new_path}/ - sed -i -e s@\"rpc-url\": \"${old_path}transmission@\"rcp-url\": \"${newpath}\"transmission@ /etc/transmission-daemon/settings.json + ynh_replace_string "\"rpc-url\": \"${old_path}transmission/\"" "\"rpc-url\": \"${new_path}transmission/\"" /etc/transmission-daemon/settings.json fi #=================================================