<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 8:06 AM, Didier Roche <span dir="ltr"><<a href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">> b) use a simple template system and dynamically generate the config<br>
> file with SNAP_DATA as the prefix before starting the service. I would<br>
> have something like this in the template file:<br>
><br>
>     acl allowed_networks src<br>
> "@PREFIX@/etc/squid-deb-proxy/<wbr>allowed-networks-src.acl"<br>
><br>
> And generate the actual config file replacing @PREFIX@ with the<br>
> contents of SNAP_DATA before starting the service. Is this overkill,<br>
> or the most elegant solution?<br>
><br>
><br>
> c) something else I'm missing? I'm very much starting my journey here :)<br>
<br>
</span>b) is the most elegant solution IMHO, it will always point to the right<br>
directory, at runtime. That makes as well upstream config relocatable,<br>
which is a net benefit for everyone :)</blockquote></div><br><br>Hi Andreas,</div><div class="gmail_extra">I agree to all that was said.</div><div class="gmail_extra">But spinning further your snaps life with that config, you might start wondering when/how to make these files available at e.g. SNAP_DATA, please feel fee to chime in on <a href="https://bugs.launchpad.net/snapcraft/+bug/1611287">https://bugs.launchpad.net/snapcraft/+bug/1611287</a> for that.</div><div class="gmail_extra">And as soon as squid_deb_proxy or others give you headache about upgrading with format changes (your template now differs from the conf that the user modified :-/) you can take a look at the discussion for <a href="https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1611638">https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1611638</a></div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div>