Change package.deb generation to include postinstall for aiokafka pip installation

Change-Id: I662b52c48cefcfd89ad67d4fe5f2f94e0e5899d4
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/python3-osm-common.postinst b/python3-osm-common.postinst
new file mode 100755
index 0000000..62b04ec
--- /dev/null
+++ b/python3-osm-common.postinst
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+##
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+# For those usages not covered by the Apache License, Version 2.0 please
+# contact with: OSM_TECH@list.etsi.org
+##
+
+echo "POST INSTALL OSM-COMMON"
+echo "Install aiokafka with pip"
+
+pip3 install pip==9.0.3
+pip3 install --upgrade aiokafka
+# pip install --upgrade pyang pyangbind
+
+#Creation of log folder
+mkdir -p /var/log/osm
+