From 63d5e9b5524d5e917dcf9848d74830d6dad08391 Mon Sep 17 00:00:00 2001 From: Josh Lothian Date: Fri, 13 Nov 2015 12:10:33 -0600 Subject: [PATCH] Drop root for Zaqar service Change-Id: I59797a8539406e478f6953a9aa0c933e73eb5892 Partially-Implements: blueprint drop-root --- docker/zaqar/Dockerfile.j2 | 2 ++ docker/zaqar/extend_start.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/zaqar/Dockerfile.j2 b/docker/zaqar/Dockerfile.j2 index 9a5346c976..104a6f2123 100644 --- a/docker/zaqar/Dockerfile.j2 +++ b/docker/zaqar/Dockerfile.j2 @@ -24,3 +24,5 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN chmod 755 /usr/local/bin/kolla_extend_start {{ include_footer }} + +USER zaqar diff --git a/docker/zaqar/extend_start.sh b/docker/zaqar/extend_start.sh index ec128144a4..5498227b68 100644 --- a/docker/zaqar/extend_start.sh +++ b/docker/zaqar/extend_start.sh @@ -3,6 +3,6 @@ # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # of the KOLLA_BOOTSTRAP variable being set, including empty. if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then - sudo -H -u zaqar zaqar-manage db_sync + zaqar zaqar-manage db_sync exit 0 fi