diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-11-13 20:14:01 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-11-13 20:14:01 +0000 |
| commit | f54c5bee3ab6bab6b088c9c0e5ee59e0e5d93bb8 (patch) | |
| tree | a6ec9d7add2ee2597e5a9892f9d80c4eae1f73e6 | |
| parent | 4650d813415aadfc0ebdf72f71fd38fa9e6936d0 (diff) | |
| parent | 63d5e9b5524d5e917dcf9848d74830d6dad08391 (diff) | |
| download | kolla-f54c5bee3ab6bab6b088c9c0e5ee59e0e5d93bb8.tar.gz kolla-f54c5bee3ab6bab6b088c9c0e5ee59e0e5d93bb8.zip | |
Merge "Drop root for Zaqar service"
| -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 |
