mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tweaking and testing
This commit is contained in:
11
update.sh
11
update.sh
@ -58,8 +58,14 @@ mySITES=$1
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fuSELFUPDATE () {
|
function fuSELFUPDATE () {
|
||||||
echo "### Now checking for newer update script ..."
|
echo "### Now checking for newer files in repository ..."
|
||||||
git fetch
|
git fetch
|
||||||
|
myREMOTESTAT=$(git status | grep -c "up-to-date")
|
||||||
|
if [ "$myREMOTESTAT" != "0" ];
|
||||||
|
then
|
||||||
|
echo "###### $myBLUE"No updates found in repository."$myWHITE"
|
||||||
|
return
|
||||||
|
fi
|
||||||
myRESULT=$(git diff --name-only origin/autoupdate | grep update.sh)
|
myRESULT=$(git diff --name-only origin/autoupdate | grep update.sh)
|
||||||
myLOCALSTAT=$(git status -uno | grep -c update.sh)
|
myLOCALSTAT=$(git status -uno | grep -c update.sh)
|
||||||
if [ "$myRESULT" == "update.sh" ];
|
if [ "$myRESULT" == "update.sh" ];
|
||||||
@ -92,6 +98,7 @@ fi
|
|||||||
|
|
||||||
echo "### Now running T-Pot update script."
|
echo "### Now running T-Pot update script."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
fuCHECKINET "https://index.docker.io https://github.com https://pypi.python.org https://ubuntu.com"
|
fuCHECKINET "https://index.docker.io https://github.com https://pypi.python.org https://ubuntu.com"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
@ -147,4 +154,4 @@ echo "### Now starting T-Pot service"
|
|||||||
systemctl start tpot
|
systemctl start tpot
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "### Done. If all services run correctly (dps.sh) you should perform a reboot."
|
echo "### Done."
|
||||||
|
Reference in New Issue
Block a user