tripleo-image-elements/elements/boot-stack/os-refresh-config/configure.d/53-init-openstack

16 lines
206 B
Bash
Executable File

#!/bin/bash
set -eu
OK=/mnt/state/var/lib/boot-stack/init-openstack.ok
if ! os-is-bootstrap-host || [ -e $OK ] ; then
exit 0
fi
PATH=/usr/local/bin:$PATH
reset-db
mkdir -p $(dirname $OK)
touch $OK