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 ...@@ -13,6 +13,11 @@ case "$1" in
rm -rf /opt/slapos/parts rm -rf /opt/slapos/parts
;; ;;
esac 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# #DEBHELPER#
......
...@@ -104,6 +104,11 @@ if [ -f /bin/systemctl ]; then ...@@ -104,6 +104,11 @@ if [ -f /bin/systemctl ]; then
fi fi
%preun %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 if [ -f /bin/systemctl ]; then
systemctl stop slapos-node.service systemctl stop slapos-node.service
fi 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