update check directory
This commit is contained in:
parent
9f48adf7d2
commit
c917e1547e
1 changed files with 5 additions and 8 deletions
13
setup.sh
13
setup.sh
|
@ -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 ""
|
||||
|
|
Loading…
Reference in a new issue