~matsubara/maas/fix-maas-cc-sed-quantal

« back to all changes in this revision

Viewing changes to debian/maas-cluster-controller.postinst

  • Committer: Diogo Matsubara
  • Date: 2013-04-11 12:35:45 UTC
  • Revision ID: diogo.matsubara@canonical.com-20130411123545-wz099eqg30zkuikf
fix sed quoting on maas-cluster-controller.postinst

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    # Get the MAAS_URL on configure/reconfigure and write it to the conf files.
84
84
    db_get maas-cluster-controller/maas-url || true
85
85
    if [ -n "$RET" ]; then
86
 
        sed -i "s|MAAS_URL=.*|MAAS_URL="$RET"|" /etc/maas/maas_cluster.conf
 
86
        sed -i "s|MAAS_URL=.*|MAAS_URL='$RET'|" /etc/maas/maas_cluster.conf
87
87
        # Extract the hostname part.
88
88
        HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] }')
89
89
        # And substitute it in-place in pserv.yaml on an indented, non-commented