#!/bin/sh # vim: set ts=4 : if ! virsh list --all --name | grep -qF db0; then ./newvm.sh db0 \ --fedora 39 \ --memory 8192,currentMemory=2048 \ --vcpus 4 \ --no-console \ -- \ --disk pool=default,size=128,cache=none \ || exit sleep 15 fi nameserver=$( dig +short -t srv _ldap._tcp.pdc._msdcs.pyrocufflink.blue \ | awk '{print $4}' ) || exit nsupdate -g <