Archive

Archive for September, 2011

Debian Squeeze – Openswan

September 19, 2011 Leave a comment

During installation, the /var/lib/dpkg/info/openswan.postinst post installation script fails to check whether a CA cert exists before trying to copy it.

This throws the mysterious error : "cp: cannot stat `': No such file or directory"

Wrap the offending line (around line 176) with a quick check :

if [ "$cafile" ]; then
cp "$cafile" /etc/ipsec.d/cacerts
fi

Advertisements