From: garciadeblas Date: Thu, 12 Dec 2019 11:21:14 +0000 (+0100) Subject: Fix roclient postinstall script X-Git-Tag: v7.0.1rc1~7 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F8386%2F4;p=osm%2FRO.git Fix roclient postinstall script Change-Id: Ib0990d0ad3fb1d11c0337a7837488dd8f5bef3f3 Signed-off-by: garciadeblas --- diff --git a/RO-client/debian/python3-osm-roclient.postinst b/RO-client/debian/python3-osm-roclient.postinst index 27c90440..1814b31e 100755 --- a/RO-client/debian/python3-osm-roclient.postinst +++ b/RO-client/debian/python3-osm-roclient.postinst @@ -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"