Comment 2 for bug 1274448

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

=== modified file 'debian/maas-region-controller-min.postinst'
--- debian/maas-region-controller-min.postinst 2014-01-15 15:38:32 +0000
+++ debian/maas-region-controller-min.postinst 2014-01-31 10:22:30 +0000
@@ -38,8 +38,7 @@
     local ipaddr="$1"

     if grep -qs "^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$" /etc/maas/maas_local_settings.py; then
- sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/"$ipaddr"\/MAAS\"/" \
- /etc/maas/maas_local_settings.py
+ sed -i "s/^DEFAULT_MAAS_URL\ \= \"[a-zA-Z0-9:/.]\{0,\}\"$/DEFAULT_MAAS_URL = \"http:\/\/$ipaddr\/MAAS\"/" /etc/maas/maas_local_settings.py
     fi
 }