summaryrefslogtreecommitdiffstats
path: root/mcp/scripts/docker-compose/files/entrypoint_maas.sh.j2
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-02-21 18:06:42 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-05-10 16:33:21 +0000
commit4e64c8495d8cddab653e7b6f8db1d4335755d4c9 (patch)
tree369480cdb59583eb8709337d403dee6da384e94e /mcp/scripts/docker-compose/files/entrypoint_maas.sh.j2
parent6d37926e32dcd89ef999cedf9adcb13cbf717964 (diff)
[maas] Fix permissions on (partial) redeployopnfv-8.0.0
When redeploying a cluster only (keeping the infrastructure containers from a previous deploy), some things need to be adjusted: - /entrypoint.sh exec permission; - /etc/maas uid/gid re-align on new (fresh) deploy; - account for different location of /usr/sbin/tcpdump apparmor profile for CentOS jumpservers; Change-Id: If51db0bc95eff1a497e1df5d457e26a7b902aa5a Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 60bf21d6aedda367c3e017cd74ea8cf602f1fdef)
Diffstat (limited to 'mcp/scripts/docker-compose/files/entrypoint_maas.sh.j2')
-rw-r--r--mcp/scripts/docker-compose/files/entrypoint_maas.sh.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/mcp/scripts/docker-compose/files/entrypoint_maas.sh.j2 b/mcp/scripts/docker-compose/files/entrypoint_maas.sh.j2
index 23b8d8f30..d92eeb017 100644
--- a/mcp/scripts/docker-compose/files/entrypoint_maas.sh.j2
+++ b/mcp/scripts/docker-compose/files/entrypoint_maas.sh.j2
@@ -10,9 +10,9 @@
{%- set pxebr_addr = nm.net_admin | ipnet_hostaddr(nm.start_ip[nm.net_admin] + nm.net_admin_hosts.index('opnfv_infra_maas_node01_deploy_address') +1) %}
if [ ! -e /var/lib/postgresql/*/main ]; then
cp -ar /var/lib/opnfv/{postgresql,maas} /var/lib/
- cp -ar /var/lib/opnfv/etc/{ssh,maas} /etc/
+ cp -ar /var/lib/opnfv/etc/maas /etc/
fi
-chown -R maas:maas /var/lib/maas
+chown -R maas:maas /var/lib/maas /etc/maas
chown -R postgres:postgres /var/lib/postgresql
chown -R proxy:proxy /var/spool/maas-proxy