cinder/contrib/block-box/init-scripts/cinder-api.sh

8 lines
130 B
Bash

#!/bin/bash
INIT_DB=${INIT_DB:-true}
if [ "$INIT_DB" = "true" ]; then
/bin/sh -c "cinder-manage db sync" cinder
fi
cinder-api -d