if test -f /var/lib/virt-factory/primary_db ; then /usr/bin/vf_upgrade_db else /usr/bin/vf_create_db fi