Merge "Drop root for Zaqar service"

This commit is contained in:
Jenkins 2015-11-13 20:14:01 +00:00 committed by Gerrit Code Review
commit f54c5bee3a
2 changed files with 3 additions and 1 deletions

@ -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

@ -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