update check directory

This commit is contained in:
holzi1005 2024-12-08 14:44:53 +01:00
parent 9f48adf7d2
commit c917e1547e

View file

@ -18,16 +18,13 @@ apt install docker docker-compose -y
echo ""
echo "4. The installer will clone the Docker-Compose Repository"
HOME_DIR=/opt/odc
if [ -d $HOME_DIR/docker-compose ]
if [ -d $HOME_DIR ]
then
cd /$HOME_DIR/docker-compose
git add .
git stash
git pull
cd $HOME_DIR
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 $HOME_DIR/docker-compose
mkdir $HOME_DIR && cd $HOME_DIR
git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git .
fi
echo ""