aboutsummaryrefslogtreecommitdiff
path: root/docker/nova/nova-api
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nova/nova-api')
-rw-r--r--docker/nova/nova-api/extend_start.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/nova/nova-api/extend_start.sh b/docker/nova/nova-api/extend_start.sh
index 2aaad1e8b..9b0e9d746 100644
--- a/docker/nova/nova-api/extend_start.sh
+++ b/docker/nova/nova-api/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
- su -s /bin/sh -c "nova-manage db sync" nova
+ sudo -H -u nova nova-manage db sync
exit 0
fi