Compare commits

...

20 commits

Author SHA1 Message Date
dz
5a986a0f4a
Merge cbcf7871ec into c7b8d9cce9 2025-09-02 07:31:11 +02:00
Marco Ochse
c7b8d9cce9
Update Link Checker 2025-09-01 12:48:12 +02:00
Marco Ochse
67a8c9d80a
Update Link Checker 2025-09-01 12:40:55 +02:00
dependabot[bot]
f2d7c2de1a
Bump lycheeverse/lychee-action from 1.9.1 to 2.0.2 in /.github/workflows (#1833)
Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 1.9.1 to 2.0.2.
- [Release notes](https://github.com/lycheeverse/lychee-action/releases)
- [Commits](https://github.com/lycheeverse/lychee-action/compare/v1.9.1...v2.0.2)

---
updated-dependencies:
- dependency-name: lycheeverse/lychee-action
  dependency-version: 2.0.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-29 18:08:34 +02:00
t3chn0m4g3
1a266c4712 bump ewsposter to latest master 2025-08-28 11:52:33 +02:00
t3chn0m4g3
6fca3cb375 Bump Elastic Stack to 8.19.2 2025-08-27 16:51:58 +02:00
Daniel Ortiz
cbcf7871ec update, refactory to master 2025-07-12 21:23:12 -04:00
Daniel Ortiz
c38fab7670 update, refactory to master 2025-07-12 21:22:27 -04:00
Daniel Ortiz
444b181075 update, refactory to master 2025-07-12 21:21:44 -04:00
Daniel Ortiz
59c6672df7 update, refactory to master 2025-07-12 21:03:48 -04:00
Daniel Ortiz
87733c6b65 update 2025-07-12 21:00:06 -04:00
Daniel Ortiz
f609e20567 update 2025-07-12 20:58:46 -04:00
Daniel Ortiz
78acb5f5c0 update 2025-07-12 20:52:11 -04:00
Daniel Ortiz
99abefe98e update 2025-07-12 20:51:47 -04:00
Daniel Ortiz
82147ba4bd update 2025-07-12 20:44:57 -04:00
Daniel Ortiz
a7af16f69a momentarily changes the fork branch 2025-07-12 20:41:20 -04:00
Daniel Ortiz
5e333eba59 momentarily changes the fork branch 2025-07-12 20:39:02 -04:00
Daniel Ortiz
c2748f9904 momentarily changes the fork branch 2025-07-12 20:37:00 -04:00
Daniel Ortiz
d94207e56e update update.sh, discriminate whether it is SENSOR or HIVE 2025-07-12 20:33:09 -04:00
Daniel Ortiz
cb8933cddb update update.sh, discriminate whether it is SENSOR or HIVE 2025-07-12 20:31:18 -04:00
6 changed files with 63 additions and 12 deletions

View file

@ -10,6 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lycheeverse/lychee-action@v1.9.1
- name: Run lychee link checker
uses: lycheeverse/lychee-action@v2.0.2
with:
args: --verbose README.md
args: >
--verbose
--retry-wait-time 10
--max-retries 3
--user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
README.md

View file

@ -1,6 +1,6 @@
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND noninteractive
ENV ES_VER=8.18.4
ENV ES_VER=8.19.2
#
# Include dist
COPY dist/ /root/dist/

View file

@ -1,5 +1,5 @@
FROM node:20.19.2-alpine3.20
ENV KB_VER=8.18.4
FROM node:22.17.1-alpine3.22
ENV KB_VER=8.19.2
#
# Include dist
COPY dist/ /root/dist/

View file

@ -1,6 +1,6 @@
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
ENV LS_VER=8.18.4
ENV LS_VER=8.19.2
#
# Include dist
COPY dist/ /root/dist/

View file

@ -33,8 +33,8 @@ RUN apk --no-cache -U upgrade && \
xmljson && \
#
# Setup ewsposter
# git clone https://github.com/telekom-security/ewsposter /opt/ewsposter && \
git clone https://github.com/telekom-security/ewsposter -b v1.33 /opt/ewsposter && \
git clone https://github.com/telekom-security/ewsposter /opt/ewsposter && \
# git clone https://github.com/telekom-security/ewsposter -b v1.33 /opt/ewsposter && \
mkdir -p /opt/ewsposter/spool /opt/ewsposter/log && \
#
# Setup user and groups

View file

@ -53,6 +53,7 @@ function fuCHECKINET () {
function fuSELFUPDATE () {
echo
echo "### Now checking for newer files in repository ..."
echo "### T-Pot... TPOT_TYPE is set to: $myTPOT_TYPE"
git fetch --all
myREMOTESTAT=$(git status | grep -c "up-to-date")
if [ "$myREMOTESTAT" != "0" ];
@ -67,13 +68,31 @@ function fuSELFUPDATE () {
echo "###### $myBLUE""Found newer version, will be pulling updates and restart myself.""$myWHITE"
git reset --hard
git pull --force
exec ./update.sh -y
exit 1
else
# check if myTPOT_TYPE is set
if [ -z "$myTPOT_TYPE" ]; then
exec ./update.sh
else
exec ./update.sh -y $myTPOT_TYPE
fi
else
echo "###### $myBLUE""Pulling updates from repository.""$myWHITE"
git reset --hard
git pull --force
fi
if [ -z "$myTPOT_TYPE" ]; then
echo
else
grep -q "^TPOT_TYPE=" .env && sed -i "s/^TPOT_TYPE=.*/TPOT_TYPE=${myTPOT_TYPE}/" .env
echo "### T-Pot type set to: $myTPOT_TYPE in .env"
if [ "$myTPOT_TYPE" == "SENSOR" ]; then
echo "### Copying compose/sensor.yml to docker-compose.yml"
cp compose/sensor.yml docker-compose.yml
else
echo
fi
fi
exit 1
echo
}
@ -194,6 +213,19 @@ function fuRESTORE () {
sed -i "s/^TPOT_VERSION=.*/TPOT_VERSION=${newVERSION}/" $HOME/tpotce/.env
}
function fuREADTPOT_TYPE () {
if [ -f .env ]; then
# reads the TPOT_TYPE from the .env file
myTPOT_TYPE=$(grep -E '^TPOT_TYPE=' .env | cut -d '=' -f2)
# Verify if TPOT_TYPE is set
if [ -z "$myTPOT_TYPE" ]; then
myTPOT_TYPE="HIVE"
fi
else
myTPOT_TYPE="HIVE"
fi
}
################
# Main section #
################
@ -211,11 +243,23 @@ if [ "$1" != "-y" ]; then
exit
fi
# if exists second argument, use it as T-Pot type, only if SENSOR or HIVE
if [ -n "$2" ]; then
if [[ "$2" == "SENSOR" || "$2" == "HIVE" ]]; then
myTPOT_TYPE="$2"
else
myTPOT_TYPE="HIVE"
fi
else
myTPOT_TYPE="HIVE"
fi
fuREADTPOT_TYPE
fuCHECK_VERSION
fuCHECKINET "https://index.docker.io https://github.com"
fuSTOP_TPOT
fuBACKUP
fuSELFUPDATE "$0" "$@"
fuSELFUPDATE "$0" "$@" "$myTPOT_TYPE"
fuUPDATER
fuRESTORE