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