=== 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 }
=== modified file 'debian/ maas-region- controller- min.postinst' maas-region- controller- min.postinst 2014-01-15 15:38:32 +0000 maas-region- controller- min.postinst 2014-01-31 10:22:30 +0000
--- debian/
+++ debian/
@@ -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 MAAS_URL\ \= \"[a-zA- Z0-9:/. ]\{0,\} \"$/DEFAULT_ MAAS_URL = \"http: \/\/"$ipaddr" \/MAAS\ "/" \ maas_local_ settings. py MAAS_URL\ \= \"[a-zA- Z0-9:/. ]\{0,\} \"$/DEFAULT_ MAAS_URL = \"http: \/\/$ipaddr\ /MAAS\" /" /etc/maas/ maas_local_ settings. py
- sed -i "s/^DEFAULT_
- /etc/maas/
+ sed -i "s/^DEFAULT_
fi
}