diff --git a/install.sh b/install.sh index 19bb802..fd1e836 100644 --- a/install.sh +++ b/install.sh @@ -34,12 +34,14 @@ chmod -R a+X /etc/tinc/ echo "Setting exclusive read access to SSH keys." chmod -v 400 /etc/lixonet/id_rsa chmod -v 400 /etc/lixonet/*/id_rsa +chmod -v 400 /etc/lixonet/known_hosts stat /etc/lixonet/id_rsa stat /etc/lixonet/*/id_rsa +stat /etc/lixonet/known_hosts echo "Enabling write access to /etc/lixonet/version." touch /etc/lixonet/version chmod 660 /etc/lixonet/version stat /etc/lixonet/version -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 lixonet-ee \ No newline at end of file +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 lixonet-ee