fix for glance api log

Change-Id: If4b60a164f5601e54878e3201589a04407b46620
Closes-Bug: #1587185
This commit is contained in:
Jakub Pavlik 2016-05-30 23:23:31 +02:00 committed by smolaon
parent 7634ad9d3a
commit 3c5ce1c69d
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ salt-call --local --retcode-passthrough state.highstate
service {{ service }} stop || true
{% endfor %}
#Fix ownership for api.log file
chown -R glance:glance /var/log/glance/
if [ "$1" == "api" ]; then
echo "starting glance-api"
su glance --shell=/bin/sh -c '/usr/bin/glance-api --config-file=/etc/glance/glance-api.conf'