Fix roclient postinstall script 86/8386/4
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 12 Dec 2019 11:21:14 +0000 (12:21 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 19 Dec 2019 15:59:12 +0000 (16:59 +0100)
Change-Id: Ib0990d0ad3fb1d11c0337a7837488dd8f5bef3f3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
RO-client/debian/python3-osm-roclient.postinst

index 27c9044..1814b31 100755 (executable)
@@ -16,7 +16,8 @@
 
 
 #configure arg-autocomplete for RO-client
-su $SUDO_USER -c 'activate-global-python-argcomplete --user'
+[ -z "$SUDO_USER" ] && SUDO_USER="$USER"
+su $SUDO_USER -c 'activate-global-python-argcomplete3 --user'
 if ! su  $SUDO_USER -c 'grep -q bash_completion.d/python-argcomplete.sh ${HOME}/.bashrc'
 then
     echo "    inserting .bash_completion.d/python-argcomplete.sh execution at .bashrc"