Support forced reinstall
This commit is contained in:
parent
083a259e9d
commit
9acf479b39
@ -9,8 +9,8 @@
|
||||
- TZ=${TZ:-GMT}
|
||||
- SERVERPORT=${wg_port:-51820}
|
||||
- ALLOWEDIPS=${network_address}/${global_prefix:-16}
|
||||
- PUID=431
|
||||
- PGID=431
|
||||
- PUID=431
|
||||
- PGID=431
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user