-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lots of mods to support the addition of the rocky linux .notus files.
- Loading branch information
Showing
9 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
# Set start dir | ||
WorkDir=$(pwd) | ||
# Tag to work with. Normally latest but might be using new tag during upgrades. | ||
TAG="latest" | ||
TAG="beta" | ||
SQLBU="${TAG}.base.sql" | ||
TAR="${TAG}.var-lib.tar.xz" | ||
VER=$(cat ver.current) | ||
|
@@ -32,8 +32,6 @@ elif [ $SPACE -le 4 ]; then | |
echo "only ${SPACE}G of space on /var/lib/docker ... bailing out." | ||
exit | ||
fi | ||
|
||
|
||
# Force a pull of the latest image. | ||
docker pull immauss/openvas:$TAG | ||
echo "Starting container for an update" | ||
|
@@ -91,8 +89,8 @@ if [ $SQL_SIZE -le 2000 ] || [ $FEED_SIZE -le 2000 ]; then | |
logger -t db-refresh "SQL_SIZE = $SQL_SIZE : FEED_SIZE = $FEED_SIZE: Failing out" | ||
exit | ||
fi | ||
cp latest.base.sql.xz /home/scott/Projects/openvas/base.sql.xz | ||
cp latest.var-lib.tar.xz /home/scott/Projects/openvas/var-lib.tar.xz | ||
cp $TAG.base.sql.xz /home/scott/Projects/openvas/base.sql.xz | ||
cp $TAG.var-lib.tar.xz /home/scott/Projects/openvas/var-lib.tar.xz | ||
|
||
# echo " Push updates to www" | ||
# scp *.xz [email protected]:/var/www/html/drupal/openvas/ | ||
|
@@ -105,7 +103,7 @@ echo "Now rebuild the image" | |
cd $WorkDir | ||
echo "$(pwd) Is current working directory." | ||
date > update.ts | ||
docker buildx build -f $DOCKERFILE --target final -t immauss/openvas:$TAG --platform linux/arm64,linux/amd64,linux/arm/v7 --push . | ||
docker buildx build -f $DOCKERFILE --target final -t immauss/openvas:$TAG --platform linux/arm64,linux/amd64 --push . | ||
if [ $? -ne 0 ]; then | ||
echo "Build failed." | ||
exit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
gvmd=v23.5.1 | ||
gvmd=v23.5.2 | ||
gvm_libs=v22.9.0 | ||
openvas=v23.0.1 | ||
openvas_smb=v22.5.6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#!/usr/bin/env bash | ||
echo " Pulling NVTs from greenbone" | ||
su -c "/usr/local/bin/greenbone-nvt-sync" gvm | ||
sleep 2 | ||
echo " Pulling scapdata from greenbone" | ||
su -c "/usr/local/bin/greenbone-feed-sync --type SCAP" gvm | ||
sleep 2 | ||
echo " Pulling cert-data from greenbone" | ||
su -c "/usr/local/bin/greenbone-feed-sync --type CERT" gvm | ||
sleep 2 | ||
echo " Pulling latest GVMD Data from Greenbone" | ||
su -c "/usr/local/bin/greenbone-feed-sync --type GVMD_DATA " gvm | ||
wait=2 | ||
|
||
# # Then pull the remaining feeds from the GB community feeds. | ||
# for feed in nvt gvmd-data scap cert nasl report-format scan-config port-list; do | ||
# echo "Synchronizing the $feed feed." | ||
# /usr/local/bin/greenbone-feed-sync --type=$feed $1 | ||
# echo "Sleep for $wait seconds" | ||
# sleep $wait | ||
# done | ||
# Sync the notus feed from the Immauss feed server. | ||
echo "Synchronizing the Notus feed from Immauss Cybersecurity" | ||
echo "And all others from the GB Community feed" | ||
/usr/local/bin/greenbone-feed-sync --notus-url "rsync://rsync.immauss.com/feeds/notus/" --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Wed Mar 20 02:30:28 UTC 2024 | ||
Wed Apr 24 19:12:21 UTC 2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters