diff options
| author | Josh Lothian <jlothian@cisco.com> | 2015-11-13 12:10:33 -0600 |
|---|---|---|
| committer | Josh Lothian <jlothian@cisco.com> | 2015-11-13 13:20:36 -0600 |
| commit | 63d5e9b5524d5e917dcf9848d74830d6dad08391 (patch) | |
| tree | 42645d8c2bc37f8d66d42dff5581ae9bbf72e8b6 /docker | |
| parent | 84b6f7edc47e4f454f13e3055ab8611ccafa2544 (diff) | |
| download | kolla-63d5e9b5524d5e917dcf9848d74830d6dad08391.tar.gz kolla-63d5e9b5524d5e917dcf9848d74830d6dad08391.zip | |
Drop root for Zaqar service
Change-Id: I59797a8539406e478f6953a9aa0c933e73eb5892
Partially-Implements: blueprint drop-root
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/zaqar/Dockerfile.j2 | 2 | ||||
| -rw-r--r-- | docker/zaqar/extend_start.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/docker/zaqar/Dockerfile.j2 b/docker/zaqar/Dockerfile.j2 index 9a5346c97..104a6f212 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 ec128144a..5498227b6 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 |
