From: Tim Van Steenburgh Date: Mon, 28 Nov 2016 18:25:32 +0000 (-0500) Subject: Try newgrp alternative X-Git-Tag: 0.1.0~32 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;ds=inline;h=a9de6f59dcc159e4588335f8ef3cb085674faaa5;p=osm%2FN2VC.git Try newgrp alternative newgrp only works in interactive mode. Try another means of running commands in the lxd group. --- diff --git a/.travis.yml b/.travis.yml index 66083d9..7627691 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,10 @@ before_install: - sudo apt-get update -q - sudo apt-get install lxd juju -y - sudo usermod -a -G lxd $USER - - newgrp lxd - - groups - - sudo lxd init --auto + - sudo -E sudo -u $USER -E bash -c "lxd init --auto" install: pip install tox-travis before_script: - - juju bootstrap localhost test + - sudo -E sudo -u $USER -E bash -c "juju bootstrap localhost test" script: tox after_script: - - juju destroy-controller --destroy-all-models -y test + - sudo -E sudo -u $USER -E bash -c "juju destroy-controller --destroy-all-models -y test"