Update install.sh
This commit is contained in:
parent
a69bd9214e
commit
9aa82a8008
23
install.sh
23
install.sh
@ -15,27 +15,6 @@ chown -R $UID:$GID /etc/lixonet/
|
|||||||
chmod -R 440 /etc/lixonet/
|
chmod -R 440 /etc/lixonet/
|
||||||
chmod -R a+X /etc/lixonet/
|
chmod -R a+X /etc/lixonet/
|
||||||
|
|
||||||
echo "Setting write access to service directories."
|
|
||||||
mkdir /etc/bind
|
|
||||||
chown -R $UID:$GID /etc/bind/
|
|
||||||
chmod -R 664 /etc/bind/
|
|
||||||
chmod -R a+X /etc/bind/
|
|
||||||
|
|
||||||
mkdir /etc/bird
|
|
||||||
chown -R $UID:$GID /etc/bird/
|
|
||||||
chmod -R 660 /etc/bird/
|
|
||||||
chmod -R a+X /etc/bird/
|
|
||||||
|
|
||||||
mkdir /etc/tinc
|
|
||||||
chown -R $UID:$GID /etc/tinc/
|
|
||||||
chmod -R 660 /etc/tinc/
|
|
||||||
chmod -R a+X /etc/tinc/
|
|
||||||
|
|
||||||
mkdir /etc/wireguard
|
|
||||||
chown -R $UID:$GID /etc/wireguard/
|
|
||||||
chmod -R 660 /etc/wireguard/
|
|
||||||
chmod -R a+X /etc/wireguard/
|
|
||||||
|
|
||||||
echo "Setting exclusive read access to SSH keys."
|
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/*/id_rsa
|
chmod -v 400 /etc/lixonet/*/id_rsa
|
||||||
@ -59,8 +38,6 @@ docker run --restart always -d \
|
|||||||
-e DOCKER_HOST=unix:///var/run/docker.sock \
|
-e DOCKER_HOST=unix:///var/run/docker.sock \
|
||||||
-e GIT_URL=$ORIGIN \
|
-e GIT_URL=$ORIGIN \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /etc/wireguard:/etc/wireguard -v /etc/bird:/etc/bird/ \
|
|
||||||
-v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind \
|
|
||||||
-v /etc/lixonet:/etc/lixonet \
|
-v /etc/lixonet:/etc/lixonet \
|
||||||
-v /etc/lixonet/known_hosts:/root/.ssh/known_hosts \
|
-v /etc/lixonet/known_hosts:/root/.ssh/known_hosts \
|
||||||
-v /etc/lixonet/id_rsa:/root/.ssh/id_rsa \
|
-v /etc/lixonet/id_rsa:/root/.ssh/id_rsa \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user