summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-vpn.postinst.in
blob: 01c112c346d1e9936adf02c58c9fe34f91b1e96e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

prefix=@prefix@
exec_prefix=@exec_prefix@
sysconfdir=@sysconfdir@
bindir=@bindir@
sbindir=@sbindir@

# remove init of daemons that we start/stop
for init in openswan ipsec setkey; do
  update-rc.d -f ${init} remove >/dev/null
done

# remove keys
rm -f /etc/ipsec.secrets
touch /etc/ipsec.secrets
chown root:root /etc/ipsec.secrets
chmod 600 /etc/ipsec.secrets
rm -f /etc/ipsec.d/private/localhost.localdomainKey.pem
rm -f /etc/ipsec.d/certs/localhost.localdomainCert.pem

# Local Variables:
# mode: shell-script
# sh-indentation: 4
# End: