strongswan: make the include's in the .conf files persistent 14711/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Wed, 10 Feb 2021 06:42:00 +0000 (23:42 -0700)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Fri, 26 Mar 2021 20:29:32 +0000 (14:29 -0600)
commit643df01275798dc4a44d33ac1a8b630c91a80c8c
tree95e86ac8d35ffa1843b9fa6b9e8225d8b9b4b7ed
parent10a00b3f20bb5b0015f2c385231632fca7136e54
strongswan: make the include's in the .conf files persistent

Having scripts diddle user written config files seems potentially
dangerous.  Plus there's really no downside to including some
empty files.  Best to just make the includes be permanent.

Additional feature suggested by Luiz: if a -opkg version of the
config file was created unnecessarily, remove it as part of the
upgrade process since changes won't be happening to that file
as an artifact of the service starting.  The include lines are
now permanent, which means that (1) additional configuration
synthesized by UCI won't be anywhere that opkg (or sysupgrade,
for that matter) cares about since it won't be persistent, and
(2) if changes are being made, then they're being done by a
person with an editor and they really should be distinguished.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
net/strongswan/Makefile
net/strongswan/files/ipsec.init