reader_install
reader_install
¶
Installer for the standalone NFLOG reader resource.
Copies terok_shield/resources/nflog_reader.py out of the installed
package to the canonical on-disk location, where the OCI bridge hook
can execute it with /usr/bin/python3. The destination survives
terok-shield reinstalls (the OCI hook references it by absolute path
regardless of the package's virtual-environment location).
install_reader_resource(dest=None)
¶
Copy the NFLOG reader script to dest and make it executable.
Overwrites any existing file so re-running after a terok-shield upgrade always picks up the latest reader code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dest
|
Path | None
|
Destination path for the reader script. Defaults to
|
None
|
Returns:
| Type | Description |
|---|---|
Path
|
The absolute path where the reader was actually installed. |