Symbiosis: On Stretch, httpd.postinst doesn't correctly preserve `no-stats` settings
Imported from https://www.github.com/BytemarkHosting/symbiosis/issues/124
This is what I think should happen:
- If
no-stats
is present and not set tofalse
: remove, as this is the default now. - If
no-stats
is present and set tofalse
: move tostats
and truncate, ensuring stats are enabled. - If
no-stats
isn't present: createstats
. - Otherwise do nothing.
Patrick advised that we can potentially not do (3) and just put in release notes that the default is now that stats are disabled by default, as we use webalizer which is old and clunky and potentially many customers don't use it.