summarylogtreecommitdiffstats
path: root/.INSTALL
diff options
context:
space:
mode:
Diffstat (limited to '.INSTALL')
-rw-r--r--.INSTALL16
1 files changed, 16 insertions, 0 deletions
diff --git a/.INSTALL b/.INSTALL
new file mode 100644
index 000000000000..1ecbd83d6174
--- /dev/null
+++ b/.INSTALL
@@ -0,0 +1,16 @@
+post_install() {
+ [ ! -d /etc/barracudavpn ] && mkdir /etc/barracudavpn
+ [ -d /etc/phionvpn/ca -a ! -d /etc/barracudavpn/ca ] && mv /etc/phionvpn/ca /etc/barracudavpn/ca
+ [ -f /etc/phionvpn/phionvpn2.conf -a ! -f /etc/barracudavpn/barracudavpn.conf ] && mv /etc/phionvpn/phionvpn2.conf /etc/barracudavpn/barracudavpn.conf
+ if [ -d /etc/phionvpn ]; then
+ for n in $(find /etc/phionvpn -type f); do
+ fn=$(basename $n)
+ [ ! -f /etc/barracudavpn/${fn} ] && mv $n /etc/barracudavpn/${fn}
+ done
+ fi
+ rmdir /etc/phionvpn 2>/dev/null
+}
+
+post_upgrade() {
+ post_install
+}