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 ""
|
||||||
echo "4. The installer will clone the Docker-Compose Repository"
|
echo "4. The installer will clone the Docker-Compose Repository"
|
||||||
HOME_DIR=/opt/odc
|
HOME_DIR=/opt/odc
|
||||||
if [ -d $HOME_DIR/docker-compose ]
|
if [ -d $HOME_DIR ]
|
||||||
then
|
then
|
||||||
cd /$HOME_DIR/docker-compose
|
cd $HOME_DIR
|
||||||
git add .
|
git add . && git stash && git pull
|
||||||
git stash
|
|
||||||
git pull
|
|
||||||
else
|
else
|
||||||
mkdir /opt/odc && cd /opt/odc
|
mkdir $HOME_DIR && cd $HOME_DIR
|
||||||
git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git
|
git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git .
|
||||||
cd $HOME_DIR/docker-compose
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in a new issue