Skip to content

Commit

Permalink
Merge pull request #2055 from timopollmeier/adjust-sync-script-instru…
Browse files Browse the repository at this point in the history
…ctions-2

Change: Deprecate old sync script, update INSTALL.md
  • Loading branch information
timopollmeier authored Aug 9, 2023
2 parents 5658a0f + 3353ea4 commit d80473b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ OPTION (ENABLE_COVERAGE "Enable support for coverage analysis" OFF)
OPTION (DEBUG_FUNCTION_NAMES "Print function names on entry and exit" OFF)
# the shell based scripts got replaced by https://github.com/greenbone/greenbone-feed-sync/
OPTION (INSTALL_OLD_SYNC_SCRIPTS "Install shell based feed sync scripts" OFF)
if (INSTALL_OLD_SYNC_SCRIPTS)
message (DEPRECATION "The version of greenbone-feed-sync included in gvmd is deprecated in favor of the newer Python version (https://github.com/greenbone/greenbone-feed-sync/) and will be removed in the next major version.")
endif (INSTALL_OLD_SYNC_SCRIPTS)

## Retrieve git revision (at configure time)
include (GetGit)
Expand Down
27 changes: 25 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,31 @@ The UUIDs of all created users can be found using
## Keeping the feeds up-to-date
The `gvmd Data`, `SCAP` and `CERT` Feeds should be kept up-to-date by calling the
`greenbone-feed-sync` script regularely (e.g. via a cron entry):
`greenbone-feed-sync` script regularly (e.g. via a cron entry).
There are currently two synchronization methods available: The older
shell-based one included in the gvmd repository and a newer Python-based one
that also handles the VT synchronization.
### Python-based sync tool
The currently recommended way of synchronizing the gvmd data feeds is the
Python tool "greenbone-feed-sync", which can be found at
https://github.com/greenbone/greenbone-feed-sync together with instruction
for its installation and usage.
When upgrading to the new synchronization tool, the old script should be
removed to avoid conflicts as both are named "greenbone-feed-sync".
### Legacy shell script
The legacy feed sync script is deprecated and will be removed in the next major
release of gvmd.
Therefore, installation of it is now disabled by default but can be enabled for
backward compatibility with the CMake option `-DINSTALL_OLD_SYNC_SCRIPTS=ON`.
The legacy script has to be run for each type of data:
greenbone-feed-sync --type GVMD_DATA
greenbone-feed-sync --type SCAP
Expand All @@ -275,7 +299,6 @@ Please note: The `CERT` feed sync depends on data provided by the `SCAP` feed
and should be called after syncing the latter.
You will need the `rsync` tool for a successful synchronization.
## Configure the default OSPD scanner socket path
By default, Manager tries to connect to the default OSPD scanner via the following path:
Expand Down

0 comments on commit d80473b

Please sign in to comment.