8
10
if ([ "$1" = "configure" ] && [ -z "$2" ]); then
10
12
db_get maas-cluster-controller/maas-url || true
14
14
# Attempt to pre-populate if installing on the region controller.
15
15
if [ -e /etc/maas/maas_local_settings.py ]; then
16
16
url=$(awk '$1 == "DEFAULT_MAAS_URL" { split($0,array,"\"")} END{print array[2] }' /etc/maas/maas_local_settings.py)