Skip to content

Commit

Permalink
Fix: path to the built openvasd and scannerctl binaries
Browse files Browse the repository at this point in the history
Also, fix path to openvasd readme.

File paths changed after internal structure changes.
  • Loading branch information
jjnicola authored and greenbonebot committed Jan 27, 2025
1 parent 62b9391 commit 5a68cb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/22.4/source-build/openvasd/build.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
```
mkdir -p $INSTALL_DIR/openvasd/usr/local/bin
cd $SOURCE_DIR/openvas-scanner-$OPENVAS_DAEMON/rust/openvasd
cd $SOURCE_DIR/openvas-scanner-$OPENVAS_DAEMON/rust/src/openvasd
cargo build --release
cd $SOURCE_DIR/openvas-scanner-$OPENVAS_DAEMON/rust/scannerctl
cd $SOURCE_DIR/openvas-scanner-$OPENVAS_DAEMON/rust/src/scannerctl
cargo build --release
sudo cp -v ../target/release/openvasd $INSTALL_DIR/openvasd/usr/local/bin/
sudo cp -v ../target/release/scannerctl $INSTALL_DIR/openvasd/usr/local/bin/
sudo cp -v ../../target/release/openvasd $INSTALL_DIR/openvasd/usr/local/bin/
sudo cp -v ../../target/release/scannerctl $INSTALL_DIR/openvasd/usr/local/bin/
sudo cp -rv $INSTALL_DIR/openvasd/* /
```
4 changes: 2 additions & 2 deletions src/22.4/source-build/openvasd/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Currently only the [notus](https://greenbone.github.io/scanner-api/#/notus/notus_run) is integrated into gvmd.
That means that `openvas` is using `openvasd` for static version checks if a scan with ssh credentials is started and packages got found.

If you want to enable the full functionality you either need to adapt the `openvasd.service` file and remove the `--mode service_notus` flag and create a [configuration file](https://github.com/greenbone/openvas-scanner/blob/main/rust/examples/openvasd/config.example.toml) within `/etc/openvasd/openvasd.toml` or adapt the [arguments](https://github.com/greenbone/openvas-scanner/tree/main/rust/openvasd#options) within `openvasd.service` if you don't want to create a configuration file.
If you want to enable the full functionality you either need to adapt the `openvasd.service` file and remove the `--mode service_notus` flag and create a [configuration file](https://github.com/greenbone/openvas-scanner/blob/main/rust/examples/openvasd/config.example.toml) within `/etc/openvasd/openvasd.toml` or adapt the [arguments](https://github.com/greenbone/openvas-scanner/tree/main/rust/src/openvasd#options) within `openvasd.service` if you don't want to create a configuration file.

For more information see:
- https://greenbone.github.io/scanner-api/
- https://github.com/greenbone/openvas-scanner/tree/main/rust/openvasd
- https://github.com/greenbone/openvas-scanner/tree/main/rust/src/openvasd
- https://github.com/greenbone/openvas-scanner/blob/main/rust/examples/openvasd/config.example.toml
1 change: 1 addition & 0 deletions src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Calendar Versioning](https://calver.org).
* Update openvas-scanner dependecy from libkrb5-dev to krb5-multidev
* Update openvas-scanner and openvasd to 23.15.3
* Remove fedora in openvas-smb.
* Fix openvasd path to binaries after file path structure changes.

## 25.1.0 - 2025-01-09

Expand Down

0 comments on commit 5a68cb7

Please sign in to comment.