fix grpclib instalation via debian package post-install script 02/9302/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 3 Jul 2020 06:35:42 +0000 (06:35 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 3 Jul 2020 06:35:42 +0000 (06:35 +0000)
Change-Id: I18a511b9d639072b763f7d7071c61c30915c9718
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
Makefile
debian/python3-osm-lcm.postinst

index 0ee3ddd..cdbb183 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,8 +20,8 @@ clean:
 
 package:
        python3 setup.py --command-packages=stdeb.command sdist_dsc
-       cp debian/python3-osm-lcm.postinst deb_dist/osm-lcm*/debian
-       cd deb_dist/osm-lcm*/debian && echo "osm-common python3-osm-common" > py3dist-overrides
+       cp debian/python3-osm-lcm.postinst deb_dist/osm-lcm*/debian
+       cd deb_dist/osm-lcm*/debian && echo "osm-common python3-osm-common" > py3dist-overrides
        # cd deb_dist/osm-lcm*/debian && echo "pip3 python3-pip"       >> py3dist-overrides
        cd deb_dist/osm-lcm*/  && dpkg-buildpackage -rfakeroot -uc -us
 
index 4ee0a2e..8a7082c 100755 (executable)
 ##
 
 echo "POST INSTALL OSM-LCM"
-# Currently it is not needed pip3 installation
-# echo "Installing python dependencies via pip..."
-# python3 -m pip install -U pip
-# python3 -m pip install --user aiokafka
+echo "Installing python dependencies grpcio-tools grpclib via pip..."
+echo
+python3 -m pip install -U pip
 python3 -m pip install grpcio-tools grpclib
 
-#Creation of log folder
-mkdir -p /var/log/osm
+# Creation of log folder
+mkdir -p /var/log/osm
 
-# systemctl enable osm-lcm.service