mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-08-23 03:16:55 +00:00
momentarily changes the fork branch
This commit is contained in:
parent
5e333eba59
commit
a7af16f69a
1 changed files with 3 additions and 6 deletions
|
@ -70,20 +70,17 @@ function fuSELFUPDATE () {
|
||||||
git pull --force
|
git pull --force
|
||||||
# check if myTPOT_TYPE is set
|
# check if myTPOT_TYPE is set
|
||||||
if [ -z "$myTPOT_TYPE" ]; then
|
if [ -z "$myTPOT_TYPE" ]; then
|
||||||
myTPOT_TYPE="HIVE"
|
exec ./update.sh
|
||||||
exec ./update.sh -y $myTPOT_TYPE
|
|
||||||
else
|
else
|
||||||
exec ./update.sh -y $myTPOT_TYPE
|
exec ./update.sh -y $myTPOT_TYPE
|
||||||
|
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"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "###### $myBLUE""Pulling updates from repository.""$myWHITE"
|
echo "###### $myBLUE""Pulling updates from repository.""$myWHITE"
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git pull origin update --force
|
git pull origin update --force
|
||||||
fi
|
fi
|
||||||
if [! -z "$myTPOT_TYPE" ]; then
|
|
||||||
echo "### Setting T-Pot type to: $myTPOT_TYPE"
|
|
||||||
grep -q "^TPOT_TYPE=" .env && sed -i "s/^TPOT_TYPE=.*/TPOT_TYPE=${myTPOT_TYPE}/" .env
|
|
||||||
fi
|
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue