From 521f6aa4b984286cea3d268bfc0564077c7f8165 Mon Sep 17 00:00:00 2001 From: wOvAN Date: Thu, 1 Nov 2018 22:53:32 +0500 Subject: [PATCH] upd --- docker/docker.set.network.forwarding.sh | 1 + docker/{ => setup}/docker.setup.centos.sh | 6 +++++- gitlab/scripts/gitlab.reconfigure.sh | 3 +++ gitlab/scripts/gitlab.update-permissions.sh | 3 +++ ssl/cert.trust.sh | 2 +- 5 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 docker/docker.set.network.forwarding.sh rename docker/{ => setup}/docker.setup.centos.sh (84%) create mode 100644 gitlab/scripts/gitlab.reconfigure.sh create mode 100644 gitlab/scripts/gitlab.update-permissions.sh diff --git a/docker/docker.set.network.forwarding.sh b/docker/docker.set.network.forwarding.sh new file mode 100644 index 0000000..b26f43c --- /dev/null +++ b/docker/docker.set.network.forwarding.sh @@ -0,0 +1 @@ +/sbin/sysctl -w net.ipv4.conf.all.forwarding=1 \ No newline at end of file diff --git a/docker/docker.setup.centos.sh b/docker/setup/docker.setup.centos.sh similarity index 84% rename from docker/docker.setup.centos.sh rename to docker/setup/docker.setup.centos.sh index 63f9b45..230cb43 100644 --- a/docker/docker.setup.centos.sh +++ b/docker/setup/docker.setup.centos.sh @@ -15,8 +15,12 @@ sudo yum install -y docker-ce # 4 -systemctl enable docker +/sbin/sysctl -w net.ipv4.conf.all.forwarding=1 # 5 + +systemctl enable docker + +# 6 systemctl start docker \ No newline at end of file diff --git a/gitlab/scripts/gitlab.reconfigure.sh b/gitlab/scripts/gitlab.reconfigure.sh new file mode 100644 index 0000000..f589a33 --- /dev/null +++ b/gitlab/scripts/gitlab.reconfigure.sh @@ -0,0 +1,3 @@ +#!/bin/bash +docker exec -t gitlab gitlab-ctl reconfigure + diff --git a/gitlab/scripts/gitlab.update-permissions.sh b/gitlab/scripts/gitlab.update-permissions.sh new file mode 100644 index 0000000..7cb4ce3 --- /dev/null +++ b/gitlab/scripts/gitlab.update-permissions.sh @@ -0,0 +1,3 @@ +#!/bin/bash +docker exec -it gitlab update-permissions + diff --git a/ssl/cert.trust.sh b/ssl/cert.trust.sh index a8fee82..4772bfe 100644 --- a/ssl/cert.trust.sh +++ b/ssl/cert.trust.sh @@ -1,4 +1,4 @@ -cp ./vlg-soc-web04t.megafon.ru.key /etc/pki/ca-trust/source/anchors +cp ./ca.cer /etc/pki/ca-trust/source/anchors update-ca-trust enable update-ca-trust extract