Drop root for Zaqar service
Change-Id: I59797a8539406e478f6953a9aa0c933e73eb5892 Partially-Implements: blueprint drop-root
This commit is contained in:
parent
84b6f7edc4
commit
63d5e9b552
@ -24,3 +24,5 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|||||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
|
USER zaqar
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
sudo -H -u zaqar zaqar-manage db_sync
|
zaqar zaqar-manage db_sync
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user