diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-16 11:32:35 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-16 11:32:35 -0200 |
commit | 96fcf69829498a27292e6b4af538d2468fc8ae22 (patch) | |
tree | 89a8b643f8e6307b4f8e8105f1c15b4147c95085 /src/etc/rc | |
parent | a99ac88822248850000045618298a8f0b9f1d854 (diff) | |
download | pfsense-96fcf69829498a27292e6b4af538d2468fc8ae22.zip pfsense-96fcf69829498a27292e6b4af538d2468fc8ae22.tar.gz |
Make sure ipsec symlinks are removed to avoid breaking strongswan pkg upgrade
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-x | src/etc/rc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -217,6 +217,19 @@ fi # Cleanup configuration files from previous instance /bin/rm -rf /var/etc/* +# Workaround for ipsec symlinks, otherwise it's going to break +# strongswan pkg upgrade + +if [ -L /usr/local/etc/ipsec.d ]; then + rm -f /usr/local/etc/ipsec.d +fi +if [ -L /usr/local/etc/ipsec.conf ]; then + rm -f /usr/local/etc/ipsec.conf +fi +if [ -L /usr/local/etc/strongswan.conf ]; then + rm -f /usr/local/etc/strongswan.conf +fi + echo -n "Creating symlinks..." # Repair symlinks if they are broken if [ -f /etc/newsyslog.conf ]; then |