Commit 4a80b69b authored by Rafael Monnerat's avatar Rafael Monnerat

Preserve tapVPN setup initially to remove with script later.

parent 4bf406b3
......@@ -13,6 +13,11 @@ case "$1" in
rm -rf /opt/slapos/parts
;;
esac
if [ -f /etc/openvpn/vifib.conf ]; then
cp -f /etc/openvpn/vifib.conf /etc/openvpn/vifib.backup.conf
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#
......
......@@ -104,6 +104,11 @@ if [ -f /bin/systemctl ]; then
fi
%preun
if [ -f /etc/openvpn/vifib.conf ]; then
cp -f /etc/openvpn/vifib.conf /etc/openvpn/vifib.backup.conf
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
if [ -f /bin/systemctl ]; then
systemctl stop slapos-node.service
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment