tripleo-image-elements/elements/nova-api/os-refresh-config/configure.d/90-nova-db-sync
Derek Higgins 837fbb1b54 Run dbsync commands with service user
In some cases these commands create log files, running them as the service
user prevents them being owned by root.

Change-Id: I5d5dc4b58f7fca494ac2617f15da9f90b5fa11c9
2014-08-18 17:29:32 +01:00

7 lines
96 B
Bash
Executable File

#!/bin/bash
set -eux
if os-is-bootstrap-host ; then
sudo -u nova -- nova-manage db sync
fi