add if doc exists

This commit is contained in:
holzi1005 2024-12-08 11:17:29 +01:00
parent bb9e12b430
commit e1fbe0050e

View file

@ -13,9 +13,18 @@ echo "3. The installer will install Docker and Docker Compose"
apt install docker docker-compose -y
echo "4. The installer will clone the Docker-Compose Repository"
mkdir /opt/odc && cd /opt/odc
git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git
cd docker-compose
HOME_DIR=/opt/odc
if [ -d $HOME_DIR/docker-compose ]
then
cd /$HOME_DIR/docker-compose
git add .
git stash
git pull
else
mkdir /opt/odc && cd /opt/odc
git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git
cd docker-compose
fi
echo "5. The installer will setup all scripts, so you can docker-compose up"
echo ""