[Swan-dev] what is swan-transmogrify doing?
Andrew Cagney
andrew.cagney at gmail.com
Fri Feb 5 15:54:14 UTC 2016
On 25 January 2016 at 10:50, Paul Wouters <paul at nohats.ca> wrote:
> Cagney wrote:
>> For instance, both swan-transmogrify and swan-prep screw
>> around with the contents of /etc/ipsec.d/*.
Slight correction :-)
swan-prep completely deletes the ipsec config that swan-transmogrify
carefully created, vis:
# wipe any old configs in /etc/ipsec.*
if os.path.isfile("/etc/ipsec.conf"):
os.unlink("/etc/ipsec.conf")
if os.path.isfile("/etc/ipsec.secrets"):
os.unlink("/etc/ipsec.secrets")
if os.path.isdir("/etc/ipsec.d"):
shutil.rmtree("/etc/ipsec.d")
os.mkdir("/etc/ipsec.d")
Andrew
More information about the Swan-dev
mailing list