Support forced reinstall

This commit is contained in:
Manevolent 2021-09-21 19:40:32 -06:00
parent 083a259e9d
commit 9acf479b39
No known key found for this signature in database
GPG Key ID: 2E9B7592DFA4F344
2 changed files with 6 additions and 2 deletions

View File

@ -49,5 +49,9 @@ touch /etc/lixonet/version
chmod 660 /etc/lixonet/version
stat /etc/lixonet/version
if [ "$1" == "force" ]; then
echo 0 > /etc/lixonet/version
fi
docker rm -f lixonet-ee
docker build -t lixonet-ee . && docker run --restart always -d -e DOCKER_HOST=unix:///var/run/docker.sock -e GIT_URL=$ORIGIN -v /var/run/docker.sock:/var/run/docker.sock -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet -v /etc/lixonet/known_hosts:/home/lixonet/.ssh/known_hosts -v /etc/lixonet/id_rsa:/home/lixonet/.ssh/id_rsa --name lixonet-ee lixonet-ee