add if doc exists
This commit is contained in:
parent
bb9e12b430
commit
e1fbe0050e
1 changed files with 12 additions and 3 deletions
15
setup.sh
15
setup.sh
|
@ -13,9 +13,18 @@ echo "3. The installer will install Docker and Docker Compose"
|
||||||
apt install docker docker-compose -y
|
apt install docker docker-compose -y
|
||||||
|
|
||||||
echo "4. The installer will clone the Docker-Compose Repository"
|
echo "4. The installer will clone the Docker-Compose Repository"
|
||||||
mkdir /opt/odc && cd /opt/odc
|
HOME_DIR=/opt/odc
|
||||||
git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git
|
if [ -d $HOME_DIR/docker-compose ]
|
||||||
cd 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 "5. The installer will setup all scripts, so you can docker-compose up"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in a new issue