~andreserl/maas/maintain_squiddebproxy_compat

« back to all changes in this revision

Viewing changes to debian/maas-region-controller-min.postrm

  • Committer: MaaS Lander
  • Author(s): Andres Rodriguez
  • Date: 2014-09-22 08:32:39 UTC
  • mfrom: (306.1.4 packaging)
  • Revision ID: maas_lander-20140922083239-w9cuuumlk3dwlk7t
[r=andreserl,gmb][bug=][author=andreserl] Replace squid-deb-proxy; run our own proxy.  Places a proxy on port 8000 for backwards compatibility, but also provides a transparent proxy if iptables are configured for such case.

This that can be done in MAAS is to generate a maas-proxy template that configures the proxy in different ways, including allowing only networks that MAAS manages, instead of all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
            invoke-rc.d apache2 restart || true
29
29
        fi
30
30
 
31
 
        # Delete symlink
32
 
        if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
33
 
            rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
34
 
        fi
35
 
 
36
31
        # Delete any remaining / leftover file
37
32
        rm -rf /usr/share/maas/maas/
38
33
esac