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