fix bugs, get rid of confusing docker error message

This commit is contained in:
t3chn0m4g3 2018-09-12 14:08:13 +00:00
parent 0ba2258d5c
commit 5c89e16d18

View file

@ -33,8 +33,11 @@ if [ "$myOK" == "0" ];
then then
echo "OK - Activating and downloading latest images." echo "OK - Activating and downloading latest images."
systemctl stop tpot systemctl stop tpot
docker stop $(docker ps -aq) if [ "$(docker ps -aq)" != "" ];
docker rm $(docker ps -aq) then
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
fi
rm -f $myLINK rm -f $myLINK
ln -s /opt/tpot/etc/compose/$myEDITION $myLINK ln -s /opt/tpot/etc/compose/$myEDITION $myLINK
fuPULLIMAGES fuPULLIMAGES