Replace pike symlink
This patch fix upgrade if files/pike is symlink.
Change-Id: I111fe68d1b30d4568fc5450d035f98324675f9d2
Related-Prod: PROD-17540
diff --git a/debian/changelog b/debian/changelog
index 33d02b4..bf25963 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+salt-formula-neutron (2016.12.1-2xenial1) xenial; urgency=medium
+
+ * Fix files/pike symlink
+
+ -- devops <devops@mirantis.com> Tue, 06 Feb 2018 15:40:55 +0200
+
salt-formula-neutron (2016.12.1-1xenial1) xenial; urgency=medium
* Build for Ubuntu xenial
diff --git a/debian/salt-formula-neutron.postinst b/debian/salt-formula-neutron.postinst
new file mode 100644
index 0000000..5ef6f3a
--- /dev/null
+++ b/debian/salt-formula-neutron.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+ /usr/share/salt-formulas/env/neutron/files/pike /usr/share/salt-formulas/env/neutron/files/ocata salt-formula-neutron -- "$@"
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/salt-formula-neutron.postrm b/debian/salt-formula-neutron.postrm
new file mode 100644
index 0000000..5ef6f3a
--- /dev/null
+++ b/debian/salt-formula-neutron.postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+ /usr/share/salt-formulas/env/neutron/files/pike /usr/share/salt-formulas/env/neutron/files/ocata salt-formula-neutron -- "$@"
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/salt-formula-neutron.preinst b/debian/salt-formula-neutron.preinst
new file mode 100644
index 0000000..5ef6f3a
--- /dev/null
+++ b/debian/salt-formula-neutron.preinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+ /usr/share/salt-formulas/env/neutron/files/pike /usr/share/salt-formulas/env/neutron/files/ocata salt-formula-neutron -- "$@"
+
+#DEBHELPER#
+
+exit 0