preinst 393 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

if [ -f /etc/openvpn/vifib.conf ]; then
    cp -f /etc/openvpn/vifib.conf /etc/openvpn/vifib.backup.conf
    mkdir -p /etc/openvpn/vifib-keys
    cp -rf /etc/openvpn/vifib-keys /etc/openvpn/vifib-backup-keys
    sed -i "s/\/etc\/openvpn\/vifib-keys/\/etc\/openvpn\/vifib-backup-keys/g"  /etc/openvpn/vifib.backup.conf
fi

#DEBHELPER#

exit 0